rust/tests/ui/cast/issue-17444.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
140 B
Rust
Raw Normal View History

2014-09-30 03:22:43 +00:00
enum Test {
Foo = 0
}
fn main() {
2014-12-06 02:12:25 +00:00
let _x = Test::Foo as *const isize;
//~^ ERROR casting `Test` as `*const isize` is invalid
2014-09-30 03:22:43 +00:00
}