rust/tests/ui/fn/fn-compare-mismatch.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
151 B
Rust
Raw Normal View History

fn main() {
2011-07-27 12:19:39 +00:00
fn f() { }
2012-08-31 01:57:58 +00:00
fn g() { }
2011-07-27 12:19:39 +00:00
let x = f == g;
2014-01-12 09:35:10 +00:00
//~^ ERROR binary operation `==` cannot be applied
//~| ERROR mismatched types
}