rust/src/test/compile-fail/nontrivial-fn-arg-pattern-in-pure-fn.rs

7 lines
138 B
Rust
Raw Normal View History

pure fn call_first((x, _y): (&fn(), &fn())) {
x(); //~ ERROR access to impure function prohibited in pure context
}
fn main() {}