Rollup merge of #55185 - davidtwco:issue-55130, r=nikomatsakis
path suggestions in Rust 2018 should point out the change in semantics Fixes #55130. This commit extends existing path suggestions to link to documentation on the changed semantics of `use` in Rust 2018.
This commit is contained in:
commit
aaa20c61d6
3 changed files with 63 additions and 29 deletions
|
|
@ -3,6 +3,8 @@ error[E0432]: unresolved import `foo`
|
|||
|
|
||||
LL | use foo::Bar;
|
||||
| ^^^ Did you mean `crate::foo`?
|
||||
|
|
||||
= note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>
|
||||
|
||||
error[E0432]: unresolved import `foo`
|
||||
--> $DIR/local-path-suggestions-2018.rs:27:5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue