about summary refs log tree commit diff
path: root/tests/ui/enum/enum-discriminant-type-mismatch-8761.rs
blob: ae09b919dc15213575fe2f07c713f0f17d0cb787 (plain)
1
2
3
4
5
6
7
8
9
10
11
// https://github.com/rust-lang/rust/issues/8761
enum Foo {
    A = 1i64,
    //~^ ERROR mismatched types
    //~| NOTE expected `isize`, found `i64`
    B = 2u8
    //~^ ERROR mismatched types
    //~| NOTE expected `isize`, found `u8`
}

fn main() {}