diff options
Diffstat (limited to 'third_party/rust/async-trait/tests/ui/missing-body.rs')
-rw-r--r-- | third_party/rust/async-trait/tests/ui/missing-body.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/rust/async-trait/tests/ui/missing-body.rs b/third_party/rust/async-trait/tests/ui/missing-body.rs new file mode 100644 index 0000000000..f3e1126d1d --- /dev/null +++ b/third_party/rust/async-trait/tests/ui/missing-body.rs @@ -0,0 +1,15 @@ +use async_trait::async_trait; + +#[async_trait] +trait Trait { + async fn f(&self); +} + +struct Thing; + +#[async_trait] +impl Trait for Thing { + async fn f(&self); +} + +fn main() {} |