rust/src/test/compile-fail/arg-style-mismatch.rs

6 lines
97 B
Rust
Raw Normal View History

// error-pattern: mismatched types
fn f(&&_x: int) {}
fn g(_a: fn(+int)) {}
fn main() { g(f); }