Deduplicate code for path suggestion

This commit is contained in:
Esteban Küber 2019-03-20 16:03:29 -07:00
parent 5390414379
commit 4beea1720a
3 changed files with 43 additions and 64 deletions

View file

@ -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

View file

@ -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