]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-45829/import-twice.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / issues / issue-45829 / import-twice.stderr
index 374b809647e7a2d18a799e06c3db648d07c00799..2a1ac57651138e8368035a61af5fae4cff1fb425 100644 (file)
@@ -2,15 +2,13 @@ error[E0252]: the name `A` is defined multiple times
   --> $DIR/import-twice.rs:6:14
    |
 LL | use foo::{A, A};
-   |           -  ^ `A` reimported here
-   |           |
+   |           ---^
+   |           || |
+   |           || `A` reimported here
+   |           |help: remove unnecessary import
    |           previous import of the type `A` here
    |
    = note: `A` must be defined only once in the type namespace of this module
-help: you can use `as` to change the binding name of the import
-   |
-LL | use foo::{A, A as OtherA};
-   |              ^^^^^^^^^^^
 
 error: aborting due to previous error