Don't suggest \[ \] if there's a :: in the path

This commit is contained in:
Joshua Nelson 2020-08-28 00:23:24 -04:00
parent f2826d9e9b
commit d67eb1f148
4 changed files with 20 additions and 24 deletions

View file

@ -7,7 +7,6 @@
/// [path::to::nonexistent::module]
//~^ ERROR unresolved link
//~| NOTE no item named `path` is in scope
//~| HELP to escape
/// [std::io::not::here]
//~^ ERROR unresolved link
@ -67,7 +66,6 @@ impl S {
/// [T::h!]
//~^ ERROR unresolved link
//~| NOTE no item named `T::h`
//~| HELP to escape
pub trait T {
fn g() {}
}