2018-08-08 14:28:26 +02:00
|
|
|
error[E0574]: expected struct, variant or union type, found type parameter `T`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lexical-scopes.rs:3:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let t = T { i: 0 };
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^ not a struct, variant or union type
|
|
|
|
help: possible better candidate is found in another module, you can import it into scope
|
|
|
|
|
|
|
|
|
LL | use T;
|
|
|
|
|
|
|
|
|
|
|
|
|
error[E0599]: no function or associated item named `f` found for type `Foo` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/lexical-scopes.rs:10:10
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Foo::f();
|
2019-03-10 16:20:15 -07:00
|
|
|
| ^ function or associated item not found in `Foo`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
For more information about this error, try `rustc --explain E0599`.
|