rust/tests/ui/error-codes/E0054.rs

5 lines
79 B
Rust
Raw Normal View History

2016-05-19 07:00:43 -05:00
fn main() {
let x = 5;
let x_is_nonzero = x as bool; //~ ERROR E0054
}