2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2016-09-29 17:07:03 +13:00
|
|
|
// Ensure that types that rely on obligations are autoderefed
|
|
|
|
|
// correctly
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2019-05-28 14:47:21 -04:00
|
|
|
let x : Vec<Box<dyn Fn()>> = vec![Box::new(|| ())];
|
2016-09-29 17:07:03 +13:00
|
|
|
x[0]()
|
|
|
|
|
}
|