rust/src/test/compile-fail/move-arg.rs

5 lines
148 B
Rust

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