]>
git.proxmox.com Git - rustc.git/blob - tests/ui/polymorphization/drop_shims/simple.rs
2 // compile-flags:-Zpolymorphize=on
4 pub struct OnDrop
<F
: Fn()>(pub F
);
6 impl<F
: Fn()> Drop
for OnDrop
<F
> {
10 fn foo
<R
, S
: FnOnce()>(
15 let _
= OnDrop(|| ());