]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-rfc0401-2.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / cast / cast-rfc0401-2.stderr
1 error[E0054]: cannot cast as `bool`
2   --> $DIR/cast-rfc0401-2.rs:16:13
3    |
4 LL |     let _ = 3 as bool;
5    |             ^^^^^^^^^ unsupported cast
6    |
7    = help: compare with zero instead
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0054`.