]> git.proxmox.com Git - rustc.git/blob - tests/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.stderr
bump version to 1.79.0+dfsg1-1~bpo12+pve2
[rustc.git] / tests / ui / type-alias-enum-variants / enum-variant-priority-lint-ambiguous_associated_items.stderr
1 error: ambiguous associated item
2 --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:32:15
3 |
4 LL | fn f() -> Self::V { 0 }
5 | ^^^^^^^ help: use fully-qualified syntax: `<E as Tr>::V`
6 |
7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #57644 <https://github.com/rust-lang/rust/issues/57644>
9 note: `V` could refer to the variant defined here
10 --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:22:5
11 |
12 LL | V
13 | ^
14 note: `V` could also refer to the associated type defined here
15 --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:26:5
16 |
17 LL | type V;
18 | ^^^^^^
19 = note: `#[deny(ambiguous_associated_items)]` on by default
20
21 error: aborting due to 1 previous error
22