summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-26641.rs
blob: e08edd0b5cb67c4b64cfc379b8d95a31eb2d2d4c (plain)
1
2
3
4
5
6
// run-pass
struct Parser<'a>(#[allow(unused_tuple_struct_fields)] Box<dyn FnMut(Parser) + 'a>);

fn main() {
    let _x = Parser(Box::new(|_|{}));
}