mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
3ba0139c66
Since they are never set and don't have impact on the test. Or for the cfg-panic tests are already tested with check-cfg.
8 lines
165 B
Rust
8 lines
165 B
Rust
fn foo(x: Option<i32>) {
|
|
if true && x {}
|
|
//~^ ERROR mismatched types
|
|
//~| HELP use `Option::is_some` to test if the `Option` has a value
|
|
}
|
|
|
|
fn main() {}
|