mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
281 B
Rust
17 lines
281 B
Rust
fn first() {
|
|
second == 1 //~ ERROR binary operation
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
fn second() {
|
|
first == 1 //~ ERROR binary operation
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
fn bar() {
|
|
bar == 1 //~ ERROR binary operation
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {}
|