diff options
| author | Pramod Bisht <pramodpsb@outlook.com> | 2018-09-03 17:27:14 +0000 |
|---|---|---|
| committer | Pramod Bisht <pramodpsb@outlook.com> | 2018-09-08 15:11:04 +0000 |
| commit | 21ba03e2b910cf58dd5c21c8dd97d4f66b6518c5 (patch) | |
| tree | 1bffb04ee86092fe34b7a73991edc84d588c376d /src/test/ui/dollar-crate | |
| parent | c2afca36672a85248f4da3e8db8cdfac198ad4ad (diff) | |
Fixed 53359: E0432 unresolved import on the same line is now emiting one diagnostic
Addressed estebank's comments for 53359
Diffstat (limited to 'src/test/ui/dollar-crate')
| -rw-r--r-- | src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr b/src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr index c9b4f894ff6..0a0b1d573dd 100644 --- a/src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr +++ b/src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr @@ -1,17 +1,17 @@ -error[E0432]: unresolved import `a::$crate` - --> $DIR/dollar-crate-is-keyword-2.rs:15:13 +error[E0433]: failed to resolve. `$crate` in paths can only be used in start position + --> $DIR/dollar-crate-is-keyword-2.rs:16:16 | -LL | use a::$crate; //~ ERROR unresolved import `a::$crate` - | ^^^^^^^^^ no `$crate` in `a` +LL | use a::$crate::b; //~ ERROR `$crate` in paths can only be used in start position + | ^^^^^^ `$crate` in paths can only be used in start position ... LL | m!(); | ----- in this macro invocation -error[E0433]: failed to resolve. `$crate` in paths can only be used in start position - --> $DIR/dollar-crate-is-keyword-2.rs:16:16 +error[E0432]: unresolved import `a::$crate` + --> $DIR/dollar-crate-is-keyword-2.rs:15:13 | -LL | use a::$crate::b; //~ ERROR `$crate` in paths can only be used in start position - | ^^^^^^ `$crate` in paths can only be used in start position +LL | use a::$crate; //~ ERROR unresolved import `a::$crate` + | ^^^^^^^^^ no `$crate` in `a` ... LL | m!(); | ----- in this macro invocation |
