rust/tests/ui/cast/cast-from-nil.rs

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

3 lines
98 B
Rust
Raw Normal View History

2017-06-09 20:04:29 +00:00
// error-pattern: non-primitive cast: `()` as `u32`
2013-03-29 01:39:09 +00:00
fn main() { let u = (assert!(true) as u32); }