diff options
| author | pierwill <pierwill@users.noreply.github.com> | 2021-10-20 08:56:10 -0500 |
|---|---|---|
| committer | pierwill <pierwill@users.noreply.github.com> | 2021-10-25 20:33:07 -0500 |
| commit | 7de1ff1ba8a75c70e1a9ddde671abd9780d1addb (patch) | |
| tree | c47fa7c179f9e013b51195d86cf1e4172624e72d /src/test/ui/error-codes | |
| parent | 84c2a8505dcdfa0e38e05f72066480ea51ba9cbd (diff) | |
| download | rust-7de1ff1ba8a75c70e1a9ddde671abd9780d1addb.tar.gz rust-7de1ff1ba8a75c70e1a9ddde671abd9780d1addb.zip | |
Edit error messages for rustc_resolve::AmbiguityKind variants
Emit description of the ambiguity as a note. Co-authored-by: Noah Lev <camelidcamel@gmail.com> Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0659.stderr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0659.stderr b/src/test/ui/error-codes/E0659.stderr index 2f01f54c2d1..b0c73c636c6 100644 --- a/src/test/ui/error-codes/E0659.stderr +++ b/src/test/ui/error-codes/E0659.stderr @@ -1,9 +1,10 @@ -error[E0659]: `foo` is ambiguous (glob import vs glob import in the same module) +error[E0659]: `foo` is ambiguous --> $DIR/E0659.rs:15:15 | LL | collider::foo(); | ^^^ ambiguous name | + = note: ambiguous because of multiple glob imports of a name in the same module note: `foo` could refer to the function imported here --> $DIR/E0659.rs:10:13 | |
