rust/tests/ui/closures/issue-1460.rs
2024-03-31 14:58:17 -03:00

8 lines
138 B
Rust

//@ run-pass
//@ pretty-expanded FIXME #23616
pub fn main() {
{|i: u32| if 1 == i { }}; //~ WARN unused closure that must be used
}