]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/lint/lint-unused-imports.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / lint-unused-imports.rs
index 9c5b206203c1dc9df0fca647d9c91b4f575d453f..4754d8880763aeeaa4a3b0dcdf6aebc837a4badc 100644 (file)
@@ -66,6 +66,7 @@ mod foo {
 
 fn g() {
     use self::g; //~ ERROR unused import: `self::g`
+    //~^ ERROR the item `g` is imported redundantly
     fn f() {
         self::g();
     }
@@ -75,6 +76,7 @@ fn f() {
 #[allow(unused_variables)]
 fn h() {
     use test2::foo; //~ ERROR unused import: `test2::foo`
+    //~^ ERROR the item `foo` is imported redundantly
     let foo = 0;
 }