rust/src/test/run-pass/newlambdas-ret-infer.rs

10 lines
166 B
Rust
Raw Normal View History

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