rust/src/test/compile-fail/fn-compare-mismatch.rs
Marijn Haverbeke c2fe7b6398 When pretty-printing fn types, leave off arg modes when they are the default
This reduces ++/&& spam in the output to a bare minimum.

Issue #1507
2012-01-16 12:08:00 +01:00

7 lines
135 B
Rust

fn main() {
fn f() { }
fn g(i: int) { }
let x = f == g;
//!^ ERROR expected `native fn()` but found `native fn(int)`
}