2011-08-08 15:53:31 -07:00
|
|
|
// error-pattern: Unsatisfied precondition constraint
|
2011-09-12 12:39:38 +02:00
|
|
|
fn test(-foo: int) { assert (foo == 10); }
|
2011-08-08 15:53:31 -07:00
|
|
|
|
2011-12-22 17:53:53 -08:00
|
|
|
fn main() { let x = 10; test(x); log(debug, x); }
|