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

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

3 lines
86 B
Rust
Raw Normal View History

2017-06-09 20:04:29 +00:00
// error-pattern: non-primitive cast: `u32` as `()`
fn main() { let u = 0u32 as (); }