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

9 lines
167 B
Rust
Raw Normal View History

// -*- rust -*-
// error-pattern: non-predicate
fn main() {
check (1 == 2); // should fail to typecheck, as (a == b)
// is not a manifest call
}