]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-enum-variants-priority.stderr
Auto merge of #60072 - RalfJung:linked-list, r=shepmaster
[rust.git] / src / test / ui / type-alias-enum-variants-priority.stderr
1 error: ambiguous associated item
2   --> $DIR/type-alias-enum-variants-priority.rs:15:15
3    |
4 LL |     fn f() -> Self::V { 0 }
5    |               ^^^^^^^ help: use fully-qualified syntax: `<E as Trait>::V`
6    |
7 note: lint level defined here
8   --> $DIR/type-alias-enum-variants-priority.rs:2:9
9    |
10 LL | #![deny(ambiguous_associated_items)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13    = note: for more information, see issue #57644 <https://github.com/rust-lang/rust/issues/57644>
14 note: `V` could refer to variant defined here
15   --> $DIR/type-alias-enum-variants-priority.rs:5:5
16    |
17 LL |     V
18    |     ^
19 note: `V` could also refer to associated type defined here
20   --> $DIR/type-alias-enum-variants-priority.rs:9:5
21    |
22 LL |     type V;
23    |     ^^^^^^^
24
25 error: aborting due to previous error
26