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 15:04:29 -05:00
// error-pattern: non-primitive cast: `()` as `u32`
2013-03-28 20:39:09 -05:00
fn main() { let u = (assert!(true) as u32); }