about summary refs log tree commit diff
path: root/src/test/compile-fail/move-arg.rs
blob: 512cd44e2065a59c2678ae595d35eb1297020804 (plain)
1
2
3
4
// error-pattern:unsatisfied precondition constraint
fn test(-foo: int) { assert (foo == 10); }

fn main() { let x = 10; test(x); log(debug, x); }