]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17897.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-17897.rs
1 // run-pass
2 fn action(mut cb: Box<dyn FnMut(usize) -> usize>) -> usize {
3     cb(1)
4 }
5
6 pub fn main() {
7     println!("num: {}", action(Box::new(move |u| u)));
8 }