]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-rfc0401-2.rs
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[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 }