Skip to content

Commit 7591e4c

Browse files
committed
fix explicit-call-to-supertrait-dtor.rs
1 parent 43673b1 commit 7591e4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ui/drop/explicit-call-to-supertrait-dtor.fixed

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![allow(dropping_references)]
55

66
struct Foo {
7-
x: isize
7+
x: isize,
88
}
99

1010
#[allow(drop_bounds)]
@@ -20,7 +20,7 @@ impl Drop for Foo {
2020

2121
impl Bar for Foo {
2222
fn blah(&self) {
23-
drop(self); //~ ERROR explicit use of destructor method
23+
drop(self); //~ ERROR explicit use of destructor method
2424
}
2525
}
2626

tests/ui/drop/explicit-call-to-supertrait-dtor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![allow(dropping_references)]
55

66
struct Foo {
7-
x: isize
7+
x: isize,
88
}
99

1010
#[allow(drop_bounds)]
@@ -20,7 +20,7 @@ impl Drop for Foo {
2020

2121
impl Bar for Foo {
2222
fn blah(&self) {
23-
self.drop(); //~ ERROR explicit use of destructor method
23+
self.drop(); //~ ERROR explicit use of destructor method
2424
}
2525
}
2626

0 commit comments

Comments
 (0)