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

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

fn main() {
  foo(id);
}