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

11 lines
190 B
Rust

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