blob: 254b9a7824f419af89108d599e89738a9497f9a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// edition:2021
#![feature(return_position_impl_trait_in_trait)]
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() {}
|