Merge pull request #301 from RalfJung/dyn

avoid bare trait objects
This commit is contained in:
Alex Crichton 2019-07-15 10:04:18 -05:00 committed by GitHub
commit 56f5b5d898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -350,8 +350,8 @@ fn run() {
// }
}
fn something_with_a_dtor(f: &Fn()) {
struct A<'a>(&'a (Fn() + 'a));
fn something_with_a_dtor(f: &dyn Fn()) {
struct A<'a>(&'a (dyn Fn() + 'a));
impl<'a> Drop for A<'a> {
fn drop(&mut self) {