2011-05-04 13:32:06 -05:00
|
|
|
// -*- rust -*-
|
2012-03-05 18:27:27 -06:00
|
|
|
// error-pattern:impure function as operator
|
2011-05-04 13:32:06 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn f(q: int) -> bool { ret true; }
|
2011-05-04 13:32:06 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 07:19:39 -05:00
|
|
|
let x = 0;
|
2011-05-04 13:32:06 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
check (f(x));
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|