1 // edition:2018
2 // run-pass
3 #![feature(must_not_suspend)]
4 #![deny(must_not_suspend)]
5 
6 #[must_not_suspend = "You gotta use Umm's, ya know?"]
7 struct Umm {
8     _i: i64
9 }
10 
11 
bar() -> Umm12 fn bar() -> Umm {
13     Umm {
14         _i: 1
15     }
16 }
17 
other()18 async fn other() {}
19 
uhoh()20 pub async fn uhoh() {
21     {
22         let _guard = bar();
23     }
24     other().await;
25 }
26 
main()27 fn main() {
28 }
29