Skip to content

Commit 43673b1

Browse files
committed
fix explicit-call-to-dtor.rs
1 parent 25cc31e commit 43673b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-rustfix
22
struct Foo {
3-
x: isize
3+
x: isize,
44
}
55

66
impl Drop for Foo {
@@ -12,5 +12,5 @@ impl Drop for Foo {
1212
fn main() {
1313
let x = Foo { x: 3 };
1414
println!("{}", x.x);
15-
drop(x); //~ ERROR explicit use of destructor method
15+
drop(x); //~ ERROR explicit use of destructor method
1616
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-rustfix
22
struct Foo {
3-
x: isize
3+
x: isize,
44
}
55

66
impl Drop for Foo {
@@ -12,5 +12,5 @@ impl Drop for Foo {
1212
fn main() {
1313
let x = Foo { x: 3 };
1414
println!("{}", x.x);
15-
x.drop(); //~ ERROR explicit use of destructor method
15+
x.drop(); //~ ERROR explicit use of destructor method
1616
}

0 commit comments

Comments
 (0)