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() -> Umm12fn bar() -> Umm { 13 Umm { 14 _i: 1 15 } 16 } 17 other()18async fn other() {} 19 uhoh()20pub async fn uhoh() { 21 { 22 let _guard = bar(); 23 } 24 other().await; 25 } 26 main()27fn main() { 28 } 29