rust/src/test/run-pass/newlambdas-ret-infer.rs
2012-08-01 19:16:06 -07:00

10 lines
172 B
Rust

// Test that the lambda kind is inferred correctly as a return
// expression
fn shared() -> fn@() { return || (); }
fn unique() -> fn~() { return || (); }
fn main() {
}