rust/tests/ui/issues/issue-26641.rs

6 lines
133 B
Rust

// run-pass
struct Parser<'a>(#[allow(dead_code)] Box<dyn FnMut(Parser) + 'a>);
fn main() {
let _x = Parser(Box::new(|_|{}));
}