2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no variant or associated item named `Homura` found for enum `Token` in the current scope
|
2018-12-07 12:15:36 -06:00
|
|
|
--> $DIR/issue-23173.rs:9:23
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | enum Token { LeftParen, RightParen, Plus, Minus, /* etc */ }
|
2022-07-01 18:47:26 -05:00
|
|
|
| ---------- variant or associated item `Homura` not found for this enum
|
2017-12-10 13:47:55 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use_token(&Token::Homura);
|
2019-04-08 16:58:18 -05:00
|
|
|
| ^^^^^^ variant or associated item not found in `Token`
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no function or associated item named `method` found for struct `Struct` in the current scope
|
2019-04-08 16:58:18 -05:00
|
|
|
--> $DIR/issue-23173.rs:10:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Struct {
|
2022-07-01 18:47:26 -05:00
|
|
|
| ------------- function or associated item `method` not found for this struct
|
2017-12-10 13:47:55 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Struct::method();
|
2019-03-10 18:20:15 -05:00
|
|
|
| ^^^^^^ function or associated item not found in `Struct`
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no function or associated item named `method` found for struct `Struct` in the current scope
|
2019-04-08 16:58:18 -05:00
|
|
|
--> $DIR/issue-23173.rs:11:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Struct {
|
2022-07-01 18:47:26 -05:00
|
|
|
| ------------- function or associated item `method` not found for this struct
|
2017-12-10 13:47:55 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Struct::method;
|
2019-03-10 18:20:15 -05:00
|
|
|
| ^^^^^^ function or associated item not found in `Struct`
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no associated item named `Assoc` found for struct `Struct` in the current scope
|
2019-04-08 16:58:18 -05:00
|
|
|
--> $DIR/issue-23173.rs:12:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Struct {
|
2022-07-01 18:47:26 -05:00
|
|
|
| ------------- associated item `Assoc` not found for this struct
|
2017-12-10 13:47:55 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Struct::Assoc;
|
2019-03-10 18:20:15 -05:00
|
|
|
| ^^^^^ associated item not found in `Struct`
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0599`.
|