rust/src/test/compile-fail/fn-compare-mismatch.rs
Graydon Hoare 697f1e38d6 Change 'native' and 'crust' to 'extern'.
This comes with a terminology change. All linkage-symbols are 'extern'
now, including rust syms in other crates. Some extern ABIs are
merely "foreign". The term "native" is retired, not clear/useful.

What was "crust" is now "extern" applied to a _definition_. This
is a bit of an overloading, but should be unambiguous: it means
that the definition should be made available to some non-rust ABI.
2012-06-26 16:18:37 -07:00

7 lines
135 B
Rust

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