|
1 | | -error[E0599]: no variant or associated item named `C` found for enum `A` in the current scope |
2 | | - --> $DIR/incorrect-variant-single-letter.rs:10:12 |
| 1 | +error[E0599]: no variant or associated item named `b` found for enum `A` in the current scope |
| 2 | + --> $DIR/incorrect-variant-single-letter.rs:13:12 |
3 | 3 | | |
4 | 4 | LL | enum A { |
5 | | - | ------ variant or associated item `C` not found for this enum |
| 5 | + | ------ variant or associated item `b` not found for this enum |
6 | 6 | ... |
7 | | -LL | foo(A::C); |
| 7 | +LL | foo(A::b); |
8 | 8 | | ^ variant or associated item not found in `A` |
9 | 9 | | |
10 | 10 | help: there is a variant with a similar name |
11 | 11 | | |
12 | | -LL - foo(A::C); |
| 12 | +LL - foo(A::b); |
13 | 13 | LL + foo(A::B()); |
14 | 14 | | |
15 | 15 |
|
16 | | -error: aborting due to 1 previous error |
| 16 | +error[E0599]: no variant or associated item named `c` found for enum `A` in the current scope |
| 17 | + --> $DIR/incorrect-variant-single-letter.rs:14:12 |
| 18 | + | |
| 19 | +LL | enum A { |
| 20 | + | ------ variant or associated item `c` not found for this enum |
| 21 | +... |
| 22 | +LL | foo(A::c); |
| 23 | + | ^ variant or associated item not found in `A` |
| 24 | + | |
| 25 | +help: there is a variant with a similar name |
| 26 | + | |
| 27 | +LL - foo(A::c); |
| 28 | +LL + foo(A::C(/* i32 */)); |
| 29 | + | |
| 30 | + |
| 31 | +error[E0599]: no variant or associated item named `d` found for enum `A` in the current scope |
| 32 | + --> $DIR/incorrect-variant-single-letter.rs:15:12 |
| 33 | + | |
| 34 | +LL | enum A { |
| 35 | + | ------ variant or associated item `d` not found for this enum |
| 36 | +... |
| 37 | +LL | foo(A::d); |
| 38 | + | ^ variant or associated item not found in `A` |
| 39 | + | |
| 40 | +help: there is a variant with a similar name |
| 41 | + | |
| 42 | +LL - foo(A::d); |
| 43 | +LL + foo(A::D(/* isize */, /* usize */)); |
| 44 | + | |
| 45 | + |
| 46 | +error: aborting due to 3 previous errors |
17 | 47 |
|
18 | 48 | For more information about this error, try `rustc --explain E0599`. |
0 commit comments