Remove logic duplication
This commit is contained in:
parent
42d7174bbc
commit
c0e481731b
16 changed files with 37 additions and 52 deletions
|
|
@ -10,7 +10,7 @@ LL |
|
|||
LL | let x = n.to_string();
|
||||
| ^^^^^^^^^^^^^ value borrowed here after move
|
||||
|
|
||||
note: consider changing this parameter type in `push` to borrow instead if ownering the value isn't necessary
|
||||
note: consider changing this parameter type in method `push` to borrow instead if ownering the value isn't necessary
|
||||
--> $DIR/use-after-move-implicity-coerced-object.rs:17:27
|
||||
|
|
||||
LL | fn push(&mut self, n: Box<dyn ToString + 'static>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue