blob: e16929bf48acc472247b95e481c06050c550daff [file] [log] [blame] [edit]
// https://github.com/rust-lang/rust/issues/36786
//@ run-pass
// Ensure that types that rely on obligations are autoderefed
// correctly
fn main() {
let x : Vec<Box<dyn Fn()>> = vec![Box::new(|| ())];
x[0]()
}