]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-36786-resolve-call.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-36786-resolve-call.rs
1 // run-pass
2 // Ensure that types that rely on obligations are autoderefed
3 // correctly
4
5 fn main() {
6     let x : Vec<Box<dyn Fn()>> = vec![Box::new(|| ())];
7     x[0]()
8 }