rust/tests/ui/cast/issue-17444.rs
2023-01-11 09:32:08 +00:00

9 lines
140 B
Rust

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