mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 23:22:30 +00:00
12 lines
193 B
Rust
12 lines
193 B
Rust
//@ run-pass
|
|
|
|
#![allow(dead_code)]
|
|
// Test that the lambda kind is inferred correctly as a return
|
|
// expression
|
|
|
|
|
|
fn unique() -> Box<dyn FnMut()+'static> { Box::new(|| ()) }
|
|
|
|
pub fn main() {
|
|
}
|