summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/test-inner-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/test-inner-fn.rs')
-rw-r--r--src/test/ui/lint/test-inner-fn.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/lint/test-inner-fn.rs b/src/test/ui/lint/test-inner-fn.rs
deleted file mode 100644
index d419cc6fa..000000000
--- a/src/test/ui/lint/test-inner-fn.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// compile-flags: --test -D unnameable_test_items
-
-#[test]
-fn foo() {
- #[test] //~ ERROR cannot test inner items [unnameable_test_items]
- fn bar() {}
- bar();
-}
-
-mod x {
- #[test]
- fn foo() {
- #[test] //~ ERROR cannot test inner items [unnameable_test_items]
- fn bar() {}
- bar();
- }
-}
-
-fn main() {}