]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-rfc0401-2.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / 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 }