|
| 1 | +error[E0425]: cannot find function, tuple struct or tuple variant `A` in this scope |
| 2 | + --> $DIR/overlapping-spans-in-suggestions.rs:13:5 |
| 3 | + | |
| 4 | +LL | A(U::C) |
| 5 | + | ^ not found in this scope |
| 6 | + | |
| 7 | +help: you might be missing a const parameter |
| 8 | + | |
| 9 | +LL | fn mcve_146261<const A: /* Type */>() { |
| 10 | + | +++++++++++++++++++++ |
| 11 | + |
| 12 | +error[E0599]: no variant or associated item named `C` found for enum `U` in the current scope |
| 13 | + --> $DIR/overlapping-spans-in-suggestions.rs:13:10 |
| 14 | + | |
| 15 | +LL | enum U { |
| 16 | + | ------ variant or associated item `C` not found for this enum |
| 17 | +... |
| 18 | +LL | A(U::C) |
| 19 | + | ^ variant or associated item not found in `U` |
| 20 | + | |
| 21 | +help: there is a variant with a similar name |
| 22 | + | |
| 23 | +LL - A(U::C) |
| 24 | +LL + A(B) |
| 25 | + | |
| 26 | + |
| 27 | +error[E0109]: type arguments are not allowed on this type |
| 28 | + --> $DIR/overlapping-spans-in-suggestions.rs:27:18 |
| 29 | + | |
| 30 | +LL | Alias::Bar::<u32> { t: 0 }; |
| 31 | + | --- ^^^ type argument not allowed |
| 32 | + | | |
| 33 | + | not allowed on this type |
| 34 | + | |
| 35 | + = note: enum variants can't have type parameters |
| 36 | +help: you might have meant to specify type parameters on enum `Foo` |
| 37 | + | |
| 38 | +LL - Alias::Bar::<u32> { t: 0 }; |
| 39 | +LL + Alias::<u32> { t: 0 }; |
| 40 | + | |
| 41 | + |
| 42 | +error: aborting due to 3 previous errors |
| 43 | + |
| 44 | +Some errors have detailed explanations: E0109, E0425, E0599. |
| 45 | +For more information about an error, try `rustc --explain E0109`. |
0 commit comments