diff options
Diffstat (limited to 'src/test/ui/lint/must_not_suspend/other_items.rs')
-rw-r--r-- | src/test/ui/lint/must_not_suspend/other_items.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/lint/must_not_suspend/other_items.rs b/src/test/ui/lint/must_not_suspend/other_items.rs new file mode 100644 index 000000000..5aa1abb14 --- /dev/null +++ b/src/test/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() {} |