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

2 lines
86 B
Rust

// error-pattern: cast from nil: () as u32
fn main() { let u = (assert true) as u32; }