aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/fn-lval.rs
blob: de0d3f48f0e28e4bcef332ce01e6b146b1be18ac (plain) (blame)
1
2
3
4
5
6
7
8
// -*- rust -*-

fn foo((fn(int) -> int) f) {}
fn id(int x) -> int { ret x; }

fn main() {
  foo(id);
}