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

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

78 lines
2.6 KiB
Text
Raw Normal View History

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 {
| ---------- 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});
| ^^^^^^^^
|
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
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 {
| ---------- 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});
| ^^^^^
|
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
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 {
| ---------- 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
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 {
| ---------- variant or associated item `Squareee` not found for this enum
2019-04-08 17:58:18 -04:00
...
LL | Shape::Squareee;
| ^^^^^^^^ 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
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 {
| ---------- variant or associated item `Circl` not found for this enum
2019-04-08 17:58:18 -04:00
...
LL | Shape::Circl;
| ^^^^^ 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
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 {
| ---------- 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`.