]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.stderr
Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow...
[rust.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: ambiguous associated item
22   --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:32:15
23    |
24 LL |     fn f() -> Self::V { 0 }
25    |               ^^^^^^^ help: use fully-qualified syntax: `<E as Tr>::V`
26    |
27    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
28    = note: for more information, see issue #57644 <https://github.com/rust-lang/rust/issues/57644>
29 note: `V` could refer to the variant defined here
30   --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:22:5
31    |
32 LL |     V
33    |     ^
34 note: `V` could also refer to the associated type defined here
35   --> $DIR/enum-variant-priority-lint-ambiguous_associated_items.rs:26:5
36    |
37 LL |     type V;
38    |     ^^^^^^
39
40 error: aborting due to 2 previous errors
41