summaryrefslogtreecommitdiffstats
path: root/src/test/ui/imports/unused-imports-in-test-module.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/imports/unused-imports-in-test-module.stderr')
-rw-r--r--src/test/ui/imports/unused-imports-in-test-module.stderr92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/test/ui/imports/unused-imports-in-test-module.stderr b/src/test/ui/imports/unused-imports-in-test-module.stderr
new file mode 100644
index 000000000..1598368eb
--- /dev/null
+++ b/src/test/ui/imports/unused-imports-in-test-module.stderr
@@ -0,0 +1,92 @@
+error: unused import: `std::io::BufRead`
+ --> $DIR/unused-imports-in-test-module.rs:3:5
+ |
+LL | use std::io::BufRead;
+ | ^^^^^^^^^^^^^^^^
+ |
+note: the lint level is defined here
+ --> $DIR/unused-imports-in-test-module.rs:1:9
+ |
+LL | #![deny(unused_imports)]
+ | ^^^^^^^^^^^^^^
+
+error: unused import: `super::a`
+ --> $DIR/unused-imports-in-test-module.rs:9:9
+ |
+LL | use super::a;
+ | ^^^^^^^^
+ |
+help: consider adding a `#[cfg(test)]` to the containing module
+ --> $DIR/unused-imports-in-test-module.rs:8:1
+ |
+LL | mod test {
+ | ^^^^^^^^
+
+error: unused import: `super::a`
+ --> $DIR/unused-imports-in-test-module.rs:19:9
+ |
+LL | use super::a;
+ | ^^^^^^^^
+ |
+help: consider adding a `#[cfg(test)]` to the containing module
+ --> $DIR/unused-imports-in-test-module.rs:18:1
+ |
+LL | mod tests {
+ | ^^^^^^^^^
+
+error: unused import: `super::a`
+ --> $DIR/unused-imports-in-test-module.rs:29:9
+ |
+LL | use super::a;
+ | ^^^^^^^^
+ |
+help: consider adding a `#[cfg(test)]` to the containing module
+ --> $DIR/unused-imports-in-test-module.rs:28:1
+ |
+LL | mod test_a {
+ | ^^^^^^^^^^
+
+error: unused import: `super::a`
+ --> $DIR/unused-imports-in-test-module.rs:39:9
+ |
+LL | use super::a;
+ | ^^^^^^^^
+ |
+help: consider adding a `#[cfg(test)]` to the containing module
+ --> $DIR/unused-imports-in-test-module.rs:38:1
+ |
+LL | mod a_test {
+ | ^^^^^^^^^^
+
+error: unused import: `super::a`
+ --> $DIR/unused-imports-in-test-module.rs:49:9
+ |
+LL | use super::a;
+ | ^^^^^^^^
+ |
+help: consider adding a `#[cfg(test)]` to the containing module
+ --> $DIR/unused-imports-in-test-module.rs:48:1
+ |
+LL | mod tests_a {
+ | ^^^^^^^^^^^
+
+error: unused import: `super::a`
+ --> $DIR/unused-imports-in-test-module.rs:59:9
+ |
+LL | use super::a;
+ | ^^^^^^^^
+ |
+help: consider adding a `#[cfg(test)]` to the containing module
+ --> $DIR/unused-imports-in-test-module.rs:58:1
+ |
+LL | mod a_tests {
+ | ^^^^^^^^^^^
+
+error: unused import: `super::a`
+ --> $DIR/unused-imports-in-test-module.rs:69:9
+ |
+LL | use super::a;
+ | ^^^^^^^^
+
+error: aborting due to 8 previous errors
+