rust/src/test/run-pass/claim-nonterm.rs
2011-09-01 16:09:15 -07:00

8 lines
179 B
Rust

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