summary refs log tree commit diff
path: root/src/test/compile-fail/fn-compare-mismatch.rs
blob: 2abf5d7b902dc1aa65b2c1965f8953bb431669a2 (plain)
1
2
3
4
5
6
fn main() {
    fn f() { }
    fn g(i: int) { }
    let x = f == g;
    //!^ ERROR expected `native fn()` but found `native fn(int)`
}