We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25cc31e commit 43673b1Copy full SHA for 43673b1
tests/ui/drop/explicit-call-to-dtor.fixed
@@ -1,6 +1,6 @@
1
//@ run-rustfix
2
struct Foo {
3
- x: isize
+ x: isize,
4
}
5
6
impl Drop for Foo {
@@ -12,5 +12,5 @@ impl Drop for Foo {
12
fn main() {
13
let x = Foo { x: 3 };
14
println!("{}", x.x);
15
- drop(x); //~ ERROR explicit use of destructor method
+ drop(x); //~ ERROR explicit use of destructor method
16
tests/ui/drop/explicit-call-to-dtor.rs
- x.drop(); //~ ERROR explicit use of destructor method
+ x.drop(); //~ ERROR explicit use of destructor method
0 commit comments