fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
2.2 KiB63 linesraw
1error: no variant `Squareee` in enum `Shape`
2  --> $DIR/suggest-variants.rs:12:41
3   |
4LL | enum Shape {
5   | ---------- variant `Squareee` not found here
6...
7LL |     println!("My shape is {:?}", Shape::Squareee { size: 5});
8   |                                         ^^^^^^^^ help: there is a variant with a similar name: `Square`
9
10error: no variant `Circl` in enum `Shape`
11  --> $DIR/suggest-variants.rs:13:41
12   |
13LL | enum Shape {
14   | ---------- variant `Circl` not found here
15...
16LL |     println!("My shape is {:?}", Shape::Circl { size: 5});
17   |                                         ^^^^^ help: there is a variant with a similar name: `Circle`
18
19error: no variant `Rombus` in enum `Shape`
20  --> $DIR/suggest-variants.rs:14:41
21   |
22LL | enum Shape {
23   | ---------- variant `Rombus` not found here
24...
25LL |     println!("My shape is {:?}", Shape::Rombus{ size: 5});
26   |                                         ^^^^^^ variant not found in `Shape`
27
28error[E0599]: no variant or associated item named `Squareee` found for type `Shape` in the current scope
29  --> $DIR/suggest-variants.rs:15:12
30   |
31LL | enum Shape {
32   | ---------- variant or associated item `Squareee` not found here
33...
34LL |     Shape::Squareee;
35   |            ^^^^^^^^
36   |            |
37   |            variant or associated item not found in `Shape`
38   |            help: there is a variant with a similar name: `Square`
39
40error[E0599]: no variant or associated item named `Circl` found for type `Shape` in the current scope
41  --> $DIR/suggest-variants.rs:16:12
42   |
43LL | enum Shape {
44   | ---------- variant or associated item `Circl` not found here
45...
46LL |     Shape::Circl;
47   |            ^^^^^
48   |            |
49   |            variant or associated item not found in `Shape`
50   |            help: there is a variant with a similar name: `Circle`
51
52error[E0599]: no variant or associated item named `Rombus` found for type `Shape` in the current scope
53  --> $DIR/suggest-variants.rs:17:12
54   |
55LL | enum Shape {
56   | ---------- variant or associated item `Rombus` not found here
57...
58LL |     Shape::Rombus;
59   |            ^^^^^^ variant or associated item not found in `Shape`
60
61error: aborting due to 6 previous errors
62
63For more information about this error, try `rustc --explain E0599`.