summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-31910.rs
blob: e0655d3f6dbf6d2daa750d2b4aaf8ebc593ed27a (plain)
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() {}