about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/async-example.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-09-26 20:20:25 +0000
committerMichael Goulet <michael@errs.io>2023-10-03 00:37:18 +0000
commit28d58f6524a10406c60c170c5e9eae70c8a7b76d (patch)
tree2c43416776963e09d40fa054f2b3ae493ed30807 /tests/ui/async-await/in-trait/async-example.rs
parentec79720c1e908728924c9634aac36fdc1fecd425 (diff)
downloadrust-28d58f6524a10406c60c170c5e9eae70c8a7b76d.tar.gz
rust-28d58f6524a10406c60c170c5e9eae70c8a7b76d.zip
Bless tests
Diffstat (limited to 'tests/ui/async-await/in-trait/async-example.rs')
-rw-r--r--tests/ui/async-await/in-trait/async-example.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/async-await/in-trait/async-example.rs b/tests/ui/async-await/in-trait/async-example.rs
index abf94ef7450..8c80c21eabe 100644
--- a/tests/ui/async-await/in-trait/async-example.rs
+++ b/tests/ui/async-await/in-trait/async-example.rs
@@ -5,7 +5,10 @@
 #![allow(incomplete_features)]
 
 trait MyTrait {
+    #[allow(async_fn_in_trait)]
     async fn foo(&self) -> i32;
+
+    #[allow(async_fn_in_trait)]
     async fn bar(&self) -> i32;
 }