1 error[E0599]: no function or associated item named `lol` found for type `dyn Foo<_>` in the current scope
2 --> $DIR/unspecified-self-in-trait-ref.rs:20:13
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 type `dyn Foo<_>` in the current scope
8 --> $DIR/unspecified-self-in-trait-ref.rs:22:13
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 type `dyn Bar<_, _>` in the current scope
14 --> $DIR/unspecified-self-in-trait-ref.rs:24:13
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 type `dyn Bar<usize, _>` in the current scope
20 --> $DIR/unspecified-self-in-trait-ref.rs:26:13
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:28:13
28 LL | let e = Bar::<usize>::lol();
29 | ^^^^^^^^^^^^^^^^^ missing reference to `A`
31 = note: because of the default `Self` reference, type parameters must be specified on object types
33 error: aborting due to 5 previous errors
35 Some errors occurred: E0393, E0599.
36 For more information about an error, try `rustc --explain E0393`.