rust/src/test/compile-fail/fn-compare-mismatch.rs

8 lines
127 B
Rust
Raw Normal View History

// xfail-stage0
// error-pattern:expected fn() but found fn(int)
fn main() {
fn f() {}
fn g(int i) {}
auto x = f == g;
}