11 lines
190 B
Rust
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() {
|
|
}
|