rust/tests/ui/suggestions/suggest-variants.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
2.3 KiB
Plaintext
Raw Normal View History

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 {
| ---------- 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
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 {
| ---------- 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
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 {
| ---------- 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
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 {
| ---------- 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`
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 {
| ---------- 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`
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 {
| ---------- 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`.