blob: db1da2b12e256645b03babf708c1905f22943d8b [file] [log] [blame]
#![feature(type_alias_enum_variants)]
#![deny(ambiguous_associated_items)]
enum E {
V
}
trait Tr {
type V;
fn f() -> Self::V;
}
impl Tr for E {
type V = u8;
fn f() -> Self::V { 0 }
//~^ ERROR ambiguous associated item
//~| WARN this was previously accepted
}
fn main() {}