Debian Codegraph @

third_party/rust/async-trait/tests/ui/delimiter-span.rs

raw
1 #![allow(unused_macro_rules)]
2
3 use async_trait::async_trait;
4
5 macro_rules! picky {
6 ($(t:tt)*) => {};
7 }
8
9 #[async_trait]
10 trait Trait {
11 async fn method();
12 }
13
14 struct Struct;
15
16 #[async_trait]
17 impl Trait for Struct {
18 async fn method() {
19 picky!({ 123, self });
20 picky!({ 123 });
21 }
22 }
23
24 fn main() {}