mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-08 03:00:43 +00:00
10 lines
220 B
Rust
10 lines
220 B
Rust
// 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]()
|
|
}
|