2017-12-10 13:47:55 -06:00
|
|
|
error[E0599]: no variant named `Homura` found for type `Token` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-23173.rs:19:16
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | enum Token { LeftParen, RightParen, Plus, Minus, /* etc */ }
|
2017-12-10 13:47:55 -06:00
|
|
|
| ---------- variant `Homura` not found here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use_token(&Token::Homura);
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^ variant not found in `Token`
|
|
|
|
|
|
|
|
error[E0599]: no function or associated item named `method` found for type `Struct` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-23173.rs:21:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Struct {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- function or associated item `method` not found for this
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Struct::method();
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^ function or associated item not found in `Struct`
|
|
|
|
|
|
|
|
error[E0599]: no function or associated item named `method` found for type `Struct` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-23173.rs:23:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Struct {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- function or associated item `method` not found for this
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Struct::method;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^ function or associated item not found in `Struct`
|
|
|
|
|
|
|
|
error[E0599]: no associated item named `Assoc` found for type `Struct` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-23173.rs:25:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Struct {
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------- associated item `Assoc` not found for this
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Struct::Assoc;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^ associated item not found in `Struct`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0599"
|