2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no variant named `Squareee` found for enum `Shape`
|
2019-04-08 21:58:18 +00:00
|
|
|
--> $DIR/suggest-variants.rs:12:41
|
2018-11-25 00:23:11 +00:00
|
|
|
|
|
2019-04-08 21:58:18 +00:00
|
|
|
LL | enum Shape {
|
2022-07-07 06:52:27 +00:00
|
|
|
| ---------- variant `Squareee` not found here
|
2019-04-08 21:58:18 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("My shape is {:?}", Shape::Squareee { size: 5});
|
2019-04-08 21:58:18 +00:00
|
|
|
| ^^^^^^^^ help: there is a variant with a similar name: `Square`
|
2018-11-25 00:23:11 +00:00
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no variant named `Circl` found for enum `Shape`
|
2019-04-08 21:58:18 +00:00
|
|
|
--> $DIR/suggest-variants.rs:13:41
|
2018-11-25 00:23:11 +00:00
|
|
|
|
|
2019-04-08 21:58:18 +00:00
|
|
|
LL | enum Shape {
|
2022-07-07 06:52:27 +00:00
|
|
|
| ---------- variant `Circl` not found here
|
2019-04-08 21:58:18 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("My shape is {:?}", Shape::Circl { size: 5});
|
2019-04-08 21:58:18 +00:00
|
|
|
| ^^^^^ help: there is a variant with a similar name: `Circle`
|
2018-11-25 00:23:11 +00:00
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no variant named `Rombus` found for enum `Shape`
|
2019-04-08 21:58:18 +00:00
|
|
|
--> $DIR/suggest-variants.rs:14:41
|
2018-11-25 00:23:11 +00:00
|
|
|
|
|
2019-04-08 21:58:18 +00:00
|
|
|
LL | enum Shape {
|
2022-07-07 06:52:27 +00:00
|
|
|
| ---------- variant `Rombus` not found here
|
2019-04-08 21:58:18 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | println!("My shape is {:?}", Shape::Rombus{ size: 5});
|
2019-07-20 02:25:03 +00:00
|
|
|
| ^^^^^^ variant not found in `Shape`
|
2018-11-25 00:23:11 +00:00
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no variant or associated item named `Squareee` found for enum `Shape` in the current scope
|
2019-04-08 21:58:18 +00:00
|
|
|
--> $DIR/suggest-variants.rs:15:12
|
|
|
|
|
|
|
|
|
LL | enum Shape {
|
2022-07-01 23:47:26 +00:00
|
|
|
| ---------- variant or associated item `Squareee` not found for this enum
|
2019-04-08 21:58:18 +00:00
|
|
|
...
|
|
|
|
LL | Shape::Squareee;
|
|
|
|
| ^^^^^^^^
|
|
|
|
| |
|
|
|
|
| variant or associated item not found in `Shape`
|
|
|
|
| help: there is a variant with a similar name: `Square`
|
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no variant or associated item named `Circl` found for enum `Shape` in the current scope
|
2019-04-08 21:58:18 +00:00
|
|
|
--> $DIR/suggest-variants.rs:16:12
|
|
|
|
|
|
|
|
|
LL | enum Shape {
|
2022-07-01 23:47:26 +00:00
|
|
|
| ---------- variant or associated item `Circl` not found for this enum
|
2019-04-08 21:58:18 +00:00
|
|
|
...
|
|
|
|
LL | Shape::Circl;
|
|
|
|
| ^^^^^
|
|
|
|
| |
|
|
|
|
| variant or associated item not found in `Shape`
|
|
|
|
| help: there is a variant with a similar name: `Circle`
|
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no variant or associated item named `Rombus` found for enum `Shape` in the current scope
|
2019-04-08 21:58:18 +00:00
|
|
|
--> $DIR/suggest-variants.rs:17:12
|
|
|
|
|
|
|
|
|
LL | enum Shape {
|
2022-07-01 23:47:26 +00:00
|
|
|
| ---------- variant or associated item `Rombus` not found for this enum
|
2019-04-08 21:58:18 +00:00
|
|
|
...
|
|
|
|
LL | Shape::Rombus;
|
|
|
|
| ^^^^^^ variant or associated item not found in `Shape`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-11-25 00:23:11 +00:00
|
|
|
|
2019-04-08 21:58:18 +00:00
|
|
|
For more information about this error, try `rustc --explain E0599`.
|