1 error[E0599]: no function or associated item named `lol` found for trait object `dyn Foo<_>` in the current scope
2 --> $DIR/unspecified-self-in-trait-ref.rs:10:18
4 LL | let a = Foo::lol();
5 | ^^^ function or associated item not found in `dyn Foo<_>`
7 error[E0599]: no function or associated item named `lol` found for trait object `dyn Foo<_>` in the current scope
8 --> $DIR/unspecified-self-in-trait-ref.rs:12:23
10 LL | let b = Foo::<_>::lol();
11 | ^^^ function or associated item not found in `dyn Foo<_>`
13 error[E0599]: no function or associated item named `lol` found for trait object `dyn Bar<_, _>` in the current scope
14 --> $DIR/unspecified-self-in-trait-ref.rs:14:18
16 LL | let c = Bar::lol();
17 | ^^^ function or associated item not found in `dyn Bar<_, _>`
19 error[E0599]: no function or associated item named `lol` found for trait object `dyn Bar<usize, _>` in the current scope
20 --> $DIR/unspecified-self-in-trait-ref.rs:16:30
22 LL | let d = Bar::<usize, _>::lol();
23 | ^^^ function or associated item not found in `dyn Bar<usize, _>`
25 error[E0393]: the type parameter `A` must be explicitly specified
26 --> $DIR/unspecified-self-in-trait-ref.rs:18:13
28 LL | / pub trait Bar<X=usize, A=Self> {
31 | |_- type parameter `A` must be specified for this
33 LL | let e = Bar::<usize>::lol();
34 | ^^^^^^^^^^^^ missing reference to `A`
36 = note: because of the default `Self` reference, type parameters must be specified on object types
38 error: aborting due to 5 previous errors
40 Some errors have detailed explanations: E0393, E0599.
41 For more information about an error, try `rustc --explain E0393`.