summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/must_not_suspend/other_items.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/must_not_suspend/other_items.rs')
-rw-r--r--tests/ui/lint/must_not_suspend/other_items.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/lint/must_not_suspend/other_items.rs b/tests/ui/lint/must_not_suspend/other_items.rs
new file mode 100644
index 000000000..5aa1abb14
--- /dev/null
+++ b/tests/ui/lint/must_not_suspend/other_items.rs
@@ -0,0 +1,8 @@
+// edition:2018
+#![feature(must_not_suspend)]
+#![deny(must_not_suspend)]
+
+#[must_not_suspend] //~ ERROR attribute should be
+mod inner {}
+
+fn main() {}