2019-07-26 23:54:25 +02:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(dead_code)]
|
2012-07-02 03:08:53 +02:00
|
|
|
// Test that the lambda kind is inferred correctly as a return
|
|
|
|
// expression
|
|
|
|
|
2015-03-22 21:13:15 +01:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2019-05-28 20:47:21 +02:00
|
|
|
fn unique() -> Box<dyn FnMut()+'static> { Box::new(|| ()) }
|
2012-07-02 03:08:53 +02:00
|
|
|
|
2013-02-02 04:43:17 +01:00
|
|
|
pub fn main() {
|
2012-07-02 03:08:53 +02:00
|
|
|
}
|