]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.stderr
Rollup merge of #82739 - jyn514:separate-stage0-stage1, r=Mark-Simulacrum
[rust.git] / src / test / 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    = note: `#[deny(ambiguous_associated_items)]` on by default
8    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9    = note: for more information, see issue #57644 <https://github.com/rust-lang/rust/issues/57644>
10 note: `V` could refer to the variant defined here
11   --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:22:5
12    |
13 LL |     V
14    |     ^
15 note: `V` could also refer to the associated type defined here
16   --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:26:5
17    |
18 LL |     type V;
19    |     ^^^^^^^
20
21 error: aborting due to previous error
22