fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.6 KiB36 linesraw
1error[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:10:18
3   |
4LL |     let a = Foo::lol();
5   |                  ^^^ function or associated item not found in `dyn Foo<_>`
6
7error[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:12:23
9   |
10LL |     let b = Foo::<_>::lol();
11   |                       ^^^ function or associated item not found in `dyn Foo<_>`
12
13error[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:14:18
15   |
16LL |     let c = Bar::lol();
17   |                  ^^^ function or associated item not found in `dyn Bar<_, _>`
18
19error[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:16:30
21   |
22LL |     let d = Bar::<usize, _>::lol();
23   |                              ^^^ function or associated item not found in `dyn Bar<usize, _>`
24
25error[E0393]: the type parameter `A` must be explicitly specified
26  --> $DIR/unspecified-self-in-trait-ref.rs:18:13
27   |
28LL |     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
33error: aborting due to 5 previous errors
34
35Some errors have detailed explanations: E0393, E0599.
36For more information about an error, try `rustc --explain E0393`.