1 2 3 4 5 6 7 8 9 10 11
enum Enum<T: Trait> { X = Trait::Number, //~^ ERROR mismatched types //~| expected `isize`, found `i32` } trait Trait { const Number: i32 = 1; } fn main() {}