fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[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 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 trait object `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 trait object `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 trait object `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 | / pub trait Bar<X=usize, A=Self> { 29LL | | fn foo(&self); 30LL | | } 31 | |_- type parameter `A` must be specified for this 32... 33LL | let e = Bar::<usize>::lol(); 34 | ^^^ missing reference to `A` 35 | 36 = note: because of the default `Self` reference, type parameters must be specified on object types 37 38error: aborting due to 5 previous errors 39 40Some errors have detailed explanations: E0393, E0599. 41For more information about an error, try `rustc --explain E0393`.