rust/src/test/compile-fail/cast-to-nil.rs
2011-12-05 01:23:10 +01:00

2 lines
74 B
Rust

// error-pattern: cast to nil: u32 as ()
fn main() { let u = 0u32 as (); }