]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26641.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-26641.rs
1 // run-pass
2 struct Parser<'a>(#[allow(unused_tuple_struct_fields)] Box<dyn FnMut(Parser) + 'a>);
3
4 fn main() {
5     let _x = Parser(Box::new(|_|{}));
6 }