commit
56f5b5d898
|
@ -350,8 +350,8 @@ fn run() {
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn something_with_a_dtor(f: &Fn()) {
|
fn something_with_a_dtor(f: &dyn Fn()) {
|
||||||
struct A<'a>(&'a (Fn() + 'a));
|
struct A<'a>(&'a (dyn Fn() + 'a));
|
||||||
|
|
||||||
impl<'a> Drop for A<'a> {
|
impl<'a> Drop for A<'a> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
|
|
Loading…
Reference in New Issue