Deduplicate code for path suggestion
This commit is contained in:
parent
5390414379
commit
4beea1720a
3 changed files with 43 additions and 64 deletions
|
|
@ -4,7 +4,7 @@ error[E0423]: expected value, found struct `String`
|
|||
LL | let _ = String.new();
|
||||
| ^^^^^^----
|
||||
| |
|
||||
| help: use `::` to access an associated function: `String::new`
|
||||
| help: use the path separator to refer to an item: `String::new`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0423]: expected value, found struct `Mod::Foo`
|
|||
LL | foo(Mod::Foo.Bar);
|
||||
| ^^^^^^^^----
|
||||
| |
|
||||
| help: use `::` to access an associated item: `Mod::Foo::Bar`
|
||||
| help: use the path separator to refer to an item: `Mod::Foo::Bar`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue