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-29 22:22:43 -05:00
enum Test {
Foo = 0
}
fn main() {
2014-12-05 20:12:25 -06:00
let _x = Test::Foo as *const isize;
//~^ ERROR casting `Test` as `*const isize` is invalid
2014-09-29 22:22:43 -05:00
}