rust/src/test/compile-fail/not-a-pred-2.rs

10 lines
185 B
Rust
Raw Normal View History

// -*- rust -*-
// error-pattern: non-predicate
fn main() {
2011-07-27 14:19:39 +02:00
check (1 ==
2); // should fail to typecheck, as (a == b)
// is not a manifest call
}