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