rust/src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs

10 lines
208 B
Rust
Raw Normal View History

fn foo(v: [int]) : vec::is_empty(v) { #debug("%d", v[0]); }
fn main() {
let f = fn@() {
let v = [1]/~;
foo(v); //! ERROR unsatisfied precondition constraint
}();
log(error, f);
}