rust/src/test/compile-fail/move-arg.rs
2012-03-05 17:05:20 -08:00

5 lines
147 B
Rust

// error-pattern:unsatisfied precondition constraint
fn test(-foo: int) { assert (foo == 10); }
fn main() { let x = 10; test(x); log(debug, x); }