summary refs log tree commit diff
path: root/src/test/compile-fail/move-arg.rs
blob: 711e9a7095c16e55fbea6e36232c3b7838706763 (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); }