rust/tests/ui/inference/newlambdas-ret-infer2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
226 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
// Test that the lambda kind is inferred correctly as a return
// expression
//@ pretty-expanded FIXME #23616
2019-05-29 02:47:21 +08:00
fn unique() -> Box<dyn FnMut()+'static> { Box::new(|| ()) }
pub fn main() {
}