summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cast/issue-17444.rs
blob: 906b443c9fab86602fe0bceae29033b0e0b77d5b (plain)
1
2
3
4
5
6
7
8
enum Test {
    Foo = 0
}

fn main() {
    let _x = Test::Foo as *const isize;
    //~^ ERROR casting `Test` as `*const isize` is invalid
}