]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-51154.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-51154.rs
1 fn foo<F: FnMut()>() {
2     let _: Box<F> = Box::new(|| ());
3     //~^ ERROR mismatched types
4 }
5
6 fn main() {}