1 pub trait Foo<A=Self> {
5 pub trait Bar<X=usize, A=Self> {
11 //~^ ERROR no function or associated item named
12 //~| WARN trait objects without an explicit `dyn` are deprecated
13 //~| WARN this is accepted in the current edition
14 let b = Foo::<_>::lol();
15 //~^ ERROR no function or associated item named
16 //~| WARN trait objects without an explicit `dyn` are deprecated
17 //~| WARN this is accepted in the current edition
19 //~^ ERROR no function or associated item named
20 //~| WARN trait objects without an explicit `dyn` are deprecated
21 //~| WARN this is accepted in the current edition
22 let d = Bar::<usize, _>::lol();
23 //~^ ERROR no function or associated item named
24 //~| WARN trait objects without an explicit `dyn` are deprecated
25 //~| WARN this is accepted in the current edition
26 let e = Bar::<usize>::lol();
27 //~^ ERROR must be explicitly specified
28 //~| WARN trait objects without an explicit `dyn` are deprecated
29 //~| WARN this is accepted in the current edition