2016-02-29 07:54:02 -06:00
|
|
|
enum Enum<T: Trait> {
|
2017-02-15 07:00:20 -06:00
|
|
|
X = Trait::Number,
|
|
|
|
//~^ ERROR mismatched types
|
2019-11-15 11:37:01 -06:00
|
|
|
//~| expected `isize`, found `i32`
|
2016-02-29 07:54:02 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
trait Trait {
|
|
|
|
const Number: i32 = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|