2020-01-08 08:05:31 -08:00
|
|
|
error[E0599]: no function or associated item named `lol` found for trait object `dyn Foo<_>` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/unspecified-self-in-trait-ref.rs:10:18
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | let a = Foo::lol();
|
2019-03-10 16:20:15 -07:00
|
|
|
| ^^^ function or associated item not found in `dyn Foo<_>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-01-08 08:05:31 -08:00
|
|
|
error[E0599]: no function or associated item named `lol` found for trait object `dyn Foo<_>` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/unspecified-self-in-trait-ref.rs:12:23
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | let b = Foo::<_>::lol();
|
2019-03-10 16:20:15 -07:00
|
|
|
| ^^^ function or associated item not found in `dyn Foo<_>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-01-08 08:05:31 -08:00
|
|
|
error[E0599]: no function or associated item named `lol` found for trait object `dyn Bar<_, _>` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/unspecified-self-in-trait-ref.rs:14:18
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | let c = Bar::lol();
|
2019-03-10 16:20:15 -07:00
|
|
|
| ^^^ function or associated item not found in `dyn Bar<_, _>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-01-08 08:05:31 -08:00
|
|
|
error[E0599]: no function or associated item named `lol` found for trait object `dyn Bar<usize, _>` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/unspecified-self-in-trait-ref.rs:16:30
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | let d = Bar::<usize, _>::lol();
|
2019-03-10 16:20:15 -07:00
|
|
|
| ^^^ function or associated item not found in `dyn Bar<usize, _>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0393]: the type parameter `A` must be explicitly specified
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/unspecified-self-in-trait-ref.rs:18:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-12-12 14:48:46 -08:00
|
|
|
LL | / pub trait Bar<X=usize, A=Self> {
|
|
|
|
LL | | fn foo(&self);
|
|
|
|
LL | | }
|
|
|
|
| |_- type parameter `A` must be specified for this
|
|
|
|
...
|
|
|
|
LL | let e = Bar::<usize>::lol();
|
2020-04-17 12:26:32 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^ missing reference to `A`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: because of the default `Self` reference, type parameters must be specified on object types
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0393, E0599.
|
2018-08-08 14:28:26 +02:00
|
|
|
For more information about an error, try `rustc --explain E0393`.
|