Make confusable suggestions verbose
This commit is contained in:
parent
385eea1d46
commit
e1e4da2b0a
14 changed files with 126 additions and 43 deletions
|
@ -5,7 +5,12 @@ LL | fn owned(self: Box<Self>);
|
|||
| --------- the method might not be found because of this arbitrary self type
|
||||
...
|
||||
LL | x.owned();
|
||||
| ^^^^^ help: there is a method with a similar name: `to_owned`
|
||||
| ^^^^^
|
||||
|
|
||||
help: there is a method with a similar name
|
||||
|
|
||||
LL | x.to_owned();
|
||||
| ~~~~~~~~
|
||||
|
||||
error[E0599]: no method named `owned` found for mutable reference `&mut dyn Foo` in the current scope
|
||||
--> $DIR/object-pointer-types.rs:17:7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue