]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-rfc0401-2.rs
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
[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 }