summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/must_not_suspend/gated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/must_not_suspend/gated.rs')
-rw-r--r--src/test/ui/lint/must_not_suspend/gated.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/lint/must_not_suspend/gated.rs b/src/test/ui/lint/must_not_suspend/gated.rs
deleted file mode 100644
index b73a76555..000000000
--- a/src/test/ui/lint/must_not_suspend/gated.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// check-pass
-
-// edition:2018
-#![deny(must_not_suspend)]
-//~^ WARNING unknown lint: `must_not_suspend`
-//~| WARNING unknown lint: `must_not_suspend`
-//~| WARNING unknown lint: `must_not_suspend`
-
-async fn other() {}
-
-pub async fn uhoh(m: std::sync::Mutex<()>) {
- let _guard = m.lock().unwrap();
- other().await;
-}
-
-fn main() {
-}