Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
autoref-autoderef
/
autoderef-vec-box-fn-36786.rs
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
]()
}