summaryrefslogtreecommitdiffstats
path: root/src/test/ui/imports/issue-45829
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/imports/issue-45829')
-rw-r--r--src/test/ui/imports/issue-45829/auxiliary/issue-45829-a.rs1
-rw-r--r--src/test/ui/imports/issue-45829/auxiliary/issue-45829-b.rs1
-rw-r--r--src/test/ui/imports/issue-45829/import-self.rs19
-rw-r--r--src/test/ui/imports/issue-45829/import-self.stderr70
-rw-r--r--src/test/ui/imports/issue-45829/import-twice.rs9
-rw-r--r--src/test/ui/imports/issue-45829/import-twice.stderr13
-rw-r--r--src/test/ui/imports/issue-45829/issue-45829.rs9
-rw-r--r--src/test/ui/imports/issue-45829/issue-45829.stderr17
-rw-r--r--src/test/ui/imports/issue-45829/rename-extern-vs-use.rs11
-rw-r--r--src/test/ui/imports/issue-45829/rename-extern-vs-use.stderr17
-rw-r--r--src/test/ui/imports/issue-45829/rename-extern-with-tab.rs8
-rw-r--r--src/test/ui/imports/issue-45829/rename-extern-with-tab.stderr17
-rw-r--r--src/test/ui/imports/issue-45829/rename-extern.rs8
-rw-r--r--src/test/ui/imports/issue-45829/rename-extern.stderr17
-rw-r--r--src/test/ui/imports/issue-45829/rename-use-vs-extern.rs7
-rw-r--r--src/test/ui/imports/issue-45829/rename-use-vs-extern.stderr17
-rw-r--r--src/test/ui/imports/issue-45829/rename-use-with-tabs.rs12
-rw-r--r--src/test/ui/imports/issue-45829/rename-use-with-tabs.stderr17
-rw-r--r--src/test/ui/imports/issue-45829/rename-with-path.rs4
-rw-r--r--src/test/ui/imports/issue-45829/rename-with-path.stderr17
-rw-r--r--src/test/ui/imports/issue-45829/rename.rs7
-rw-r--r--src/test/ui/imports/issue-45829/rename.stderr17
22 files changed, 0 insertions, 315 deletions
diff --git a/src/test/ui/imports/issue-45829/auxiliary/issue-45829-a.rs b/src/test/ui/imports/issue-45829/auxiliary/issue-45829-a.rs
deleted file mode 100644
index e9f7fefb6..000000000
--- a/src/test/ui/imports/issue-45829/auxiliary/issue-45829-a.rs
+++ /dev/null
@@ -1 +0,0 @@
-pub const FOO: usize = *&0;
diff --git a/src/test/ui/imports/issue-45829/auxiliary/issue-45829-b.rs b/src/test/ui/imports/issue-45829/auxiliary/issue-45829-b.rs
deleted file mode 100644
index e9f7fefb6..000000000
--- a/src/test/ui/imports/issue-45829/auxiliary/issue-45829-b.rs
+++ /dev/null
@@ -1 +0,0 @@
-pub const FOO: usize = *&0;
diff --git a/src/test/ui/imports/issue-45829/import-self.rs b/src/test/ui/imports/issue-45829/import-self.rs
deleted file mode 100644
index 2dc4331ce..000000000
--- a/src/test/ui/imports/issue-45829/import-self.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-mod foo {
- pub struct A;
- pub struct B;
-}
-
-use foo::{self};
-//~^ ERROR is defined multiple times
-
-use foo as self;
-//~^ ERROR expected identifier
-
-use foo::self; //~ ERROR is defined multiple times
-//~^ ERROR `self` imports are only allowed within a { } list
-
-use foo::A;
-use foo::{self as A};
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/import-self.stderr b/src/test/ui/imports/issue-45829/import-self.stderr
deleted file mode 100644
index 0c9424f30..000000000
--- a/src/test/ui/imports/issue-45829/import-self.stderr
+++ /dev/null
@@ -1,70 +0,0 @@
-error: expected identifier, found keyword `self`
- --> $DIR/import-self.rs:9:12
- |
-LL | use foo as self;
- | ^^^^ expected identifier, found keyword
-
-error[E0429]: `self` imports are only allowed within a { } list
- --> $DIR/import-self.rs:12:8
- |
-LL | use foo::self;
- | ^^^^^^
- |
-help: consider importing the module directly
- |
-LL - use foo::self;
-LL + use foo;
- |
-help: alternatively, use the multi-path `use` syntax to import `self`
- |
-LL | use foo::{self};
- | + +
-
-error[E0255]: the name `foo` is defined multiple times
- --> $DIR/import-self.rs:6:11
- |
-LL | mod foo {
- | ------- previous definition of the module `foo` here
-...
-LL | use foo::{self};
- | ^^^^ `foo` reimported here
- |
- = note: `foo` 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::{self as other_foo};
- | ~~~~~~~~~~~~~~~~~
-
-error[E0255]: the name `foo` is defined multiple times
- --> $DIR/import-self.rs:12:5
- |
-LL | mod foo {
- | ------- previous definition of the module `foo` here
-...
-LL | use foo::self;
- | ^^^^^^^^^ `foo` reimported here
- |
- = note: `foo` 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 as other_foo;
- | ~~~~~~~~~~~~~~~~
-
-error[E0252]: the name `A` is defined multiple times
- --> $DIR/import-self.rs:16:11
- |
-LL | use foo::A;
- | ------ previous import of the type `A` here
-LL | use foo::{self as A};
- | ^^^^^^^^^ `A` reimported 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::{self as OtherA};
- | ~~~~~~~~~~~~~~
-
-error: aborting due to 5 previous errors
-
-Some errors have detailed explanations: E0252, E0255, E0429.
-For more information about an error, try `rustc --explain E0252`.
diff --git a/src/test/ui/imports/issue-45829/import-twice.rs b/src/test/ui/imports/issue-45829/import-twice.rs
deleted file mode 100644
index e5a8bb7ad..000000000
--- a/src/test/ui/imports/issue-45829/import-twice.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-mod foo {
- pub struct A;
- pub struct B;
-}
-
-use foo::{A, A};
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/import-twice.stderr b/src/test/ui/imports/issue-45829/import-twice.stderr
deleted file mode 100644
index 656b011bc..000000000
--- a/src/test/ui/imports/issue-45829/import-twice.stderr
+++ /dev/null
@@ -1,13 +0,0 @@
-error[E0252]: the name `A` is defined multiple times
- --> $DIR/import-twice.rs:6:14
- |
-LL | use foo::{A, A};
- | - ^ `A` reimported here
- | |
- | previous import of the type `A` here
- |
- = note: `A` must be defined only once in the type namespace of this module
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0252`.
diff --git a/src/test/ui/imports/issue-45829/issue-45829.rs b/src/test/ui/imports/issue-45829/issue-45829.rs
deleted file mode 100644
index 1e76e4b14..000000000
--- a/src/test/ui/imports/issue-45829/issue-45829.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-mod foo {
- pub struct A;
- pub struct B;
-}
-
-use foo::{A, B as A};
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/issue-45829.stderr b/src/test/ui/imports/issue-45829/issue-45829.stderr
deleted file mode 100644
index e9a9d47ce..000000000
--- a/src/test/ui/imports/issue-45829/issue-45829.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0252]: the name `A` is defined multiple times
- --> $DIR/issue-45829.rs:6:14
- |
-LL | use foo::{A, B as A};
- | - ^^^^^^ `A` reimported here
- | |
- | 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, B as OtherA};
- | ~~~~~~~~~~~
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0252`.
diff --git a/src/test/ui/imports/issue-45829/rename-extern-vs-use.rs b/src/test/ui/imports/issue-45829/rename-extern-vs-use.rs
deleted file mode 100644
index aef7aa35c..000000000
--- a/src/test/ui/imports/issue-45829/rename-extern-vs-use.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// aux-build:issue-45829-b.rs
-
-mod foo {
- pub mod bar {}
-}
-
-use foo::bar;
-extern crate issue_45829_b as bar;
-//~^ ERROR the name `bar` is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/rename-extern-vs-use.stderr b/src/test/ui/imports/issue-45829/rename-extern-vs-use.stderr
deleted file mode 100644
index 98fd8a623..000000000
--- a/src/test/ui/imports/issue-45829/rename-extern-vs-use.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0254]: the name `bar` is defined multiple times
- --> $DIR/rename-extern-vs-use.rs:8:1
- |
-LL | use foo::bar;
- | -------- previous import of the module `bar` here
-LL | extern crate issue_45829_b as bar;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `bar` reimported here
- |
- = note: `bar` 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 | extern crate issue_45829_b as other_bar;
- |
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0254`.
diff --git a/src/test/ui/imports/issue-45829/rename-extern-with-tab.rs b/src/test/ui/imports/issue-45829/rename-extern-with-tab.rs
deleted file mode 100644
index 0da8b826c..000000000
--- a/src/test/ui/imports/issue-45829/rename-extern-with-tab.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-// aux-build:issue-45829-a.rs
-// aux-build:issue-45829-b.rs
-
-extern crate issue_45829_a;
-extern crate issue_45829_b as issue_45829_a;
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/rename-extern-with-tab.stderr b/src/test/ui/imports/issue-45829/rename-extern-with-tab.stderr
deleted file mode 100644
index 2c4e8ce99..000000000
--- a/src/test/ui/imports/issue-45829/rename-extern-with-tab.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0259]: the name `issue_45829_a` is defined multiple times
- --> $DIR/rename-extern-with-tab.rs:5:1
- |
-LL | extern crate issue_45829_a;
- | --------------------------- previous import of the extern crate `issue_45829_a` here
-LL | extern crate issue_45829_b as issue_45829_a;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `issue_45829_a` reimported here
- |
- = note: `issue_45829_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 | extern crate issue_45829_b as other_issue_45829_a;
- |
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0259`.
diff --git a/src/test/ui/imports/issue-45829/rename-extern.rs b/src/test/ui/imports/issue-45829/rename-extern.rs
deleted file mode 100644
index 7dbda6932..000000000
--- a/src/test/ui/imports/issue-45829/rename-extern.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-// aux-build:issue-45829-a.rs
-// aux-build:issue-45829-b.rs
-
-extern crate issue_45829_a;
-extern crate issue_45829_b as issue_45829_a;
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/rename-extern.stderr b/src/test/ui/imports/issue-45829/rename-extern.stderr
deleted file mode 100644
index 209ae2201..000000000
--- a/src/test/ui/imports/issue-45829/rename-extern.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0259]: the name `issue_45829_a` is defined multiple times
- --> $DIR/rename-extern.rs:5:1
- |
-LL | extern crate issue_45829_a;
- | --------------------------- previous import of the extern crate `issue_45829_a` here
-LL | extern crate issue_45829_b as issue_45829_a;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `issue_45829_a` reimported here
- |
- = note: `issue_45829_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 | extern crate issue_45829_b as other_issue_45829_a;
- |
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0259`.
diff --git a/src/test/ui/imports/issue-45829/rename-use-vs-extern.rs b/src/test/ui/imports/issue-45829/rename-use-vs-extern.rs
deleted file mode 100644
index 0cf3a77fd..000000000
--- a/src/test/ui/imports/issue-45829/rename-use-vs-extern.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-// aux-build:issue-45829-b.rs
-
-extern crate issue_45829_b;
-use std as issue_45829_b;
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/rename-use-vs-extern.stderr b/src/test/ui/imports/issue-45829/rename-use-vs-extern.stderr
deleted file mode 100644
index dfb5810c4..000000000
--- a/src/test/ui/imports/issue-45829/rename-use-vs-extern.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0254]: the name `issue_45829_b` is defined multiple times
- --> $DIR/rename-use-vs-extern.rs:4:5
- |
-LL | extern crate issue_45829_b;
- | --------------------------- previous import of the extern crate `issue_45829_b` here
-LL | use std as issue_45829_b;
- | ^^^^^^^^^^^^^^^^^^^^ `issue_45829_b` reimported here
- |
- = note: `issue_45829_b` 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 std as other_issue_45829_b;
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0254`.
diff --git a/src/test/ui/imports/issue-45829/rename-use-with-tabs.rs b/src/test/ui/imports/issue-45829/rename-use-with-tabs.rs
deleted file mode 100644
index 86c5fa00f..000000000
--- a/src/test/ui/imports/issue-45829/rename-use-with-tabs.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-mod foo {
- pub struct A;
-
- pub mod bar {
- pub struct B;
- }
-}
-
-use foo::{A, bar::B as A};
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/rename-use-with-tabs.stderr b/src/test/ui/imports/issue-45829/rename-use-with-tabs.stderr
deleted file mode 100644
index 5a63af588..000000000
--- a/src/test/ui/imports/issue-45829/rename-use-with-tabs.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0252]: the name `A` is defined multiple times
- --> $DIR/rename-use-with-tabs.rs:9:14
- |
-LL | use foo::{A, bar::B as A};
- | - ^^^^^^^^^^^^^^^^^ `A` reimported here
- | |
- | 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, bar::B as OtherA};
- | ~~~~~~~~~~~~~~~~
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0252`.
diff --git a/src/test/ui/imports/issue-45829/rename-with-path.rs b/src/test/ui/imports/issue-45829/rename-with-path.rs
deleted file mode 100644
index e278a8789..000000000
--- a/src/test/ui/imports/issue-45829/rename-with-path.rs
+++ /dev/null
@@ -1,4 +0,0 @@
-use std::{collections::HashMap as A, sync::Arc as A};
-//~^ ERROR is defined multiple times
-
-fn main() {}
diff --git a/src/test/ui/imports/issue-45829/rename-with-path.stderr b/src/test/ui/imports/issue-45829/rename-with-path.stderr
deleted file mode 100644
index 2d26b0838..000000000
--- a/src/test/ui/imports/issue-45829/rename-with-path.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0252]: the name `A` is defined multiple times
- --> $DIR/rename-with-path.rs:1:38
- |
-LL | use std::{collections::HashMap as A, sync::Arc as A};
- | ------------------------- ^^^^^^^^^^^^^^ `A` reimported here
- | |
- | 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 std::{collections::HashMap as A, sync::Arc as OtherA};
- | ~~~~~~~~~~~~~~~~~~~
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0252`.
diff --git a/src/test/ui/imports/issue-45829/rename.rs b/src/test/ui/imports/issue-45829/rename.rs
deleted file mode 100644
index 1c45956c6..000000000
--- a/src/test/ui/imports/issue-45829/rename.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use core;
-use std as core;
-//~^ ERROR is defined multiple times
-
-fn main() {
- 1 + 1;
-}
diff --git a/src/test/ui/imports/issue-45829/rename.stderr b/src/test/ui/imports/issue-45829/rename.stderr
deleted file mode 100644
index ed185ae2a..000000000
--- a/src/test/ui/imports/issue-45829/rename.stderr
+++ /dev/null
@@ -1,17 +0,0 @@
-error[E0252]: the name `core` is defined multiple times
- --> $DIR/rename.rs:2:5
- |
-LL | use core;
- | ---- previous import of the module `core` here
-LL | use std as core;
- | ^^^^^^^^^^^ `core` reimported here
- |
- = note: `core` 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 std as other_core;
- | ~~~~~~~~~~~~~~~~~
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0252`.