Merge spans for the suggestion
This commit is contained in:
parent
34b51187ce
commit
a9199de34d
5 changed files with 24 additions and 19 deletions
|
|
@ -2,10 +2,10 @@ error[E0040]: explicit use of destructor method
|
|||
--> $DIR/E0040.rs:13:7
|
||||
|
|
||||
LL | x.drop();
|
||||
| ^^^^
|
||||
| |
|
||||
| explicit destructor calls not allowed
|
||||
| help: consider using `drop` function: `drop(x)`
|
||||
| --^^^^
|
||||
| | |
|
||||
| | explicit destructor calls not allowed
|
||||
| help: consider using `drop` function: `drop(x)`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ error[E0040]: explicit use of destructor method
|
|||
--> $DIR/explicit-call-to-dtor.rs:13:7
|
||||
|
|
||||
LL | x.drop();
|
||||
| ^^^^
|
||||
| |
|
||||
| explicit destructor calls not allowed
|
||||
| help: consider using `drop` function: `drop(x)`
|
||||
| --^^^^
|
||||
| | |
|
||||
| | explicit destructor calls not allowed
|
||||
| help: consider using `drop` function: `drop(x)`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ error[E0040]: explicit use of destructor method
|
|||
--> $DIR/explicit-call-to-supertrait-dtor.rs:17:14
|
||||
|
|
||||
LL | self.drop();
|
||||
| ^^^^
|
||||
| |
|
||||
| explicit destructor calls not allowed
|
||||
| help: consider using `drop` function: `drop(self)`
|
||||
| -----^^^^
|
||||
| | |
|
||||
| | explicit destructor calls not allowed
|
||||
| help: consider using `drop` function: `drop(self)`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | Drop::drop(&mut Foo)
|
|||
| ^^^^^^^^^^
|
||||
| |
|
||||
| explicit destructor calls not allowed
|
||||
| help: consider using `drop` function
|
||||
| help: consider using `drop` function: `drop`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue