11 lines
146 B
Rust
11 lines
146 B
Rust
// -*- rust -*-
|
|
// error-pattern:impure function as operator
|
|
|
|
fn f(q: int) -> bool { ret true; }
|
|
|
|
fn main() {
|
|
let x = 0;
|
|
|
|
check (f(x));
|
|
}
|