rust/src/test/run-pass/claim-nonterm.rs

8 lines
174 B
Rust
Raw Normal View History

// tests that the pred in a claim isn't actually eval'd
use std;
import uint::*;
pure fn fails(a: uint) -> bool { fail; }
fn main() { let b: uint = 4u; claim (fails(b)); }