rust/src/test/compile-fail/slot-as-pred.rs
2011-07-27 15:54:33 +02:00

13 lines
204 B
Rust

// -*- rust -*-
// xfail-stage0
// error-pattern: unresolved name: lt
fn f(a: int, b: int) { }
fn main() {
let lt: int;
let a: int = 10;
let b: int = 23;
check (lt(a, b));
f(a, b);
}