rust/tests/ui/impl-trait/in-trait/deep-match-works.rs
2024-06-25 17:22:22 +02:00

17 lines
224 B
Rust

//@ check-pass
pub struct Wrapper<T>(T);
pub trait Foo {
fn bar() -> Wrapper<impl Sized>;
}
impl Foo for () {
#[expect(refining_impl_trait)]
fn bar() -> Wrapper<i32> {
Wrapper(0)
}
}
fn main() {}