]> git.lizzy.rs Git - rust.git/blob - tests/ui/cast/cast-rfc0401-2.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / cast / cast-rfc0401-2.rs
1 // RFC 401 test extracted into distinct file. This is because some the
2 // change to suppress "derived" errors wound up suppressing this error
3 // message, since the fallback for `3` doesn't occur.
4
5 fn main() {
6     let _ = 3 as bool;
7     //~^ ERROR cannot cast as `bool`
8 }