rust/tests/ui/impl-trait/in-trait/deep-match-works.rs
2023-01-11 09:32:08 +00:00

17 lines
249 B
Rust

// check-pass
#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]
struct Wrapper<T>(T);
trait Foo {
fn bar() -> Wrapper<impl Sized>;
}
impl Foo for () {
fn bar() -> Wrapper<i32> { Wrapper(0) }
}
fn main() {}