]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unspecified-self-in-trait-ref.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / unspecified-self-in-trait-ref.stderr
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
3    |
4 LL |     let a = Foo::lol();
5    |             ^^^^^^^^ function or associated item not found in `dyn Foo<_>`
6
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
9    |
10 LL |     let b = Foo::<_>::lol();
11    |             ^^^^^^^^^^^^^ function or associated item not found in `dyn Foo<_>`
12
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
15    |
16 LL |     let c = Bar::lol();
17    |             ^^^^^^^^ function or associated item not found in `dyn Bar<_, _>`
18
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
21    |
22 LL |     let d = Bar::<usize, _>::lol();
23    |             ^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `dyn Bar<usize, _>`
24
25 error[E0393]: the type parameter `A` must be explicitly specified
26   --> $DIR/unspecified-self-in-trait-ref.rs:28:13
27    |
28 LL |     let e = Bar::<usize>::lol();
29    |             ^^^^^^^^^^^^^^^^^ missing reference to `A`
30    |
31    = note: because of the default `Self` reference, type parameters must be specified on object types
32
33 error: aborting due to 5 previous errors
34
35 Some errors occurred: E0393, E0599.
36 For more information about an error, try `rustc --explain E0393`.