Don't give misleading errors for f::A, where f is in the value namespace

This commit is contained in:
Joshua Nelson 2020-08-21 00:23:23 -04:00
parent f4e6ebd11a
commit 002d3a922c
3 changed files with 54 additions and 20 deletions

View file

@ -7,14 +7,14 @@
// FIXME: this could say which path was the first to not be found (in this case, `path`)
/// [path::to::nonexistent::module]
//~^ ERROR unresolved link
//~| NOTE no item named `path::to::nonexistent` is in scope
//~| NOTE no item named `path::to` is in scope
//~| HELP to escape
// TODO: why does this say `f` and not `f::A`??
/// [f::A]
//~^ ERROR unresolved link
//~| NOTE no item named `f` is in scope
//~| HELP to escape
//~| NOTE this link partially resolves
//~| NOTE `f` is a function, not a module
/// [S::A]
//~^ ERROR unresolved link