mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
20 lines
377 B
Rust
20 lines
377 B
Rust
fn first() {
|
|
second == 1 //~ ERROR binary operation
|
|
//~^ ERROR mismatched types
|
|
//~| ERROR mismatched types
|
|
}
|
|
|
|
fn second() {
|
|
first == 1 //~ ERROR binary operation
|
|
//~^ ERROR mismatched types
|
|
//~| ERROR mismatched types
|
|
}
|
|
|
|
fn bar() {
|
|
bar == 1 //~ ERROR binary operation
|
|
//~^ ERROR mismatched types
|
|
//~| ERROR mismatched types
|
|
}
|
|
|
|
fn main() {}
|