2020-03-11 15:35:46 -04:00
|
|
|
fn first() {
|
|
|
|
|
second == 1 //~ ERROR binary operation
|
|
|
|
|
//~^ ERROR mismatched types
|
2023-03-09 17:11:30 +00:00
|
|
|
//~| ERROR mismatched types
|
2020-03-11 15:35:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn second() {
|
|
|
|
|
first == 1 //~ ERROR binary operation
|
|
|
|
|
//~^ ERROR mismatched types
|
2023-03-09 17:11:30 +00:00
|
|
|
//~| ERROR mismatched types
|
2020-03-11 15:35:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn bar() {
|
|
|
|
|
bar == 1 //~ ERROR binary operation
|
|
|
|
|
//~^ ERROR mismatched types
|
2023-03-09 17:11:30 +00:00
|
|
|
//~| ERROR mismatched types
|
2020-03-11 15:35:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|