error: ambiguous associated item --> $DIR/type-alias-enum-variants-priority.rs:15:15 | LL | fn f() -> Self::V { 0 } | ^^^^^^^ help: use fully-qualified syntax: `::V` | note: lint level defined here --> $DIR/type-alias-enum-variants-priority.rs:2:9 | LL | #![deny(ambiguous_associated_items)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #57644 note: `V` could refer to variant defined here --> $DIR/type-alias-enum-variants-priority.rs:5:5 | LL | V | ^ note: `V` could also refer to associated type defined here --> $DIR/type-alias-enum-variants-priority.rs:9:5 | LL | type V; | ^^^^^^^ error: aborting due to previous error