diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/imports/unused-imports-in-test-module.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/imports/unused-imports-in-test-module.rs')
-rw-r--r-- | src/test/ui/imports/unused-imports-in-test-module.rs | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/src/test/ui/imports/unused-imports-in-test-module.rs b/src/test/ui/imports/unused-imports-in-test-module.rs deleted file mode 100644 index 7849c3fcd..000000000 --- a/src/test/ui/imports/unused-imports-in-test-module.rs +++ /dev/null @@ -1,89 +0,0 @@ -#![deny(unused_imports)] - -use std::io::BufRead; //~ ERROR unused import: `std::io::BufRead` - -fn a() {} -fn b() {} - -mod test { - use super::a; //~ ERROR unused import: `super::a` - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -mod tests { - use super::a; //~ ERROR unused import: `super::a` - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -mod test_a { - use super::a; //~ ERROR unused import: `super::a` - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -mod a_test { - use super::a; //~ ERROR unused import: `super::a` - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -mod tests_a { - use super::a; //~ ERROR unused import: `super::a` - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -mod a_tests { - use super::a; //~ ERROR unused import: `super::a` - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -mod fastest_search { - use super::a; //~ ERROR unused import: `super::a` - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -#[cfg(test)] -mod test_has_attr { - use super::a; - - #[test] - fn foo() { - a(); - use crate::b; - } -} - -fn main() {} |