+// compile-flags: --edition=2018
#![feature(custom_inner_attributes)]
#![rustfmt::skip]
-#![allow(clippy::trivially_copy_pass_by_ref, clippy::cognitive_complexity, clippy::redundant_closure_call)]
+#![warn(clippy::debug_assert_with_mut_call)]
+#![allow(clippy::redundant_closure_call)]
struct S;
})());
}
+async fn debug_await() {
+ debug_assert!(async {
+ true
+ }.await);
+}
+
fn main() {
func_non_mutable();
func_mutable();
method_mutable();
misc();
+ debug_await();
}