@@ -5,10 +5,10 @@ LL | let x = Option(1);
5
5
| ^^^^^^
6
6
help: try using one of the enum's variants
7
7
|
8
- LL | let x = std::prelude::v1 ::Option::None(1);
9
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
- LL | let x = std::prelude::v1 ::Option::Some(1);
11
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8
+ LL | let x = std::option ::Option::None(1);
9
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
10
+ LL | let x = std::option ::Option::Some(1);
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error[E0532]: expected tuple struct/variant, found enum `Option`
14
14
--> $DIR/issue-43871-enum-instead-of-variant.rs:21:12
@@ -17,10 +17,10 @@ LL | if let Option(_) = x {
17
17
| ^^^^^^
18
18
help: try using one of the enum's variants
19
19
|
20
- LL | if let std::prelude::v1 ::Option::None(_) = x {
21
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
- LL | if let std::prelude::v1 ::Option::Some(_) = x {
23
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
+ LL | if let std::option ::Option::None(_) = x {
21
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
22
+ LL | if let std::option ::Option::Some(_) = x {
23
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
24
24
25
25
error[E0532]: expected tuple struct/variant, found enum `Example`
26
26
--> $DIR/issue-43871-enum-instead-of-variant.rs:27:12
@@ -47,14 +47,14 @@ LL | let z = ManyVariants();
47
47
| ^^^^^^^^^^^^
48
48
help: try using one of the enum's variants
49
49
|
50
- LL | let z = ManyVariants::Eight();
50
+ LL | let z = ManyVariants::One();
51
+ | ^^^^^^^^^^^^^^^^^
52
+ LL | let z = ManyVariants::Two();
53
+ | ^^^^^^^^^^^^^^^^^
54
+ LL | let z = ManyVariants::Three();
51
55
| ^^^^^^^^^^^^^^^^^^^
52
- LL | let z = ManyVariants::Five();
53
- | ^^^^^^^^^^^^^^^^^^
54
56
LL | let z = ManyVariants::Four();
55
57
| ^^^^^^^^^^^^^^^^^^
56
- LL | let z = ManyVariants::Nine();
57
- | ^^^^^^^^^^^^^^^^^^
58
58
and 6 other candidates
59
59
60
60
error: aborting due to 5 previous errors
0 commit comments