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