blob: d23ef093be1876ecbf9821e1b5ca472901bb7314 [file] [log] [blame]
// edition:2021
struct Wrapper<T>(T);
trait Foo {
fn bar() -> Wrapper<Missing<impl Sized>>;
//~^ ERROR: cannot find type `Missing` in this scope [E0412]
}
impl Foo for () {
fn bar() -> Wrapper<i32> {
Wrapper(0)
}
}
fn main() {}