2012-07-01 20:08:53 -05:00
|
|
|
// Test that the lambda kind is inferred correctly as a return
|
|
|
|
// expression
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn shared() -> fn@() { return || (); }
|
2012-07-01 20:08:53 -05:00
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn unique() -> fn~() { return || (); }
|
2012-07-01 20:08:53 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|