5 lines
147 B
Rust
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); }
|