fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0054]: cannot cast as `bool` 2 --> $DIR/cast-as-bool.rs:2:13 3 | 4LL | let u = 5 as bool; 5 | ^^^^^^^^^ help: compare with zero instead: `5 != 0` 6 7error[E0054]: cannot cast as `bool` 8 --> $DIR/cast-as-bool.rs:5:13 9 | 10LL | let t = (1 + 2) as bool; 11 | ^^^^^^^^^^^^^^^ help: compare with zero instead: `(1 + 2) != 0` 12 13error[E0606]: casting `&'static str` as `bool` is invalid 14 --> $DIR/cast-as-bool.rs:8:13 15 | 16LL | let v = "hello" as bool; 17 | ^^^^^^^^^^^^^^^ 18 19error: aborting due to 3 previous errors 20 21Some errors have detailed explanations: E0054, E0606. 22For more information about an error, try `rustc --explain E0054`.