We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 926aeb5 commit b3fdf43Copy full SHA for b3fdf43
tests/test.rs
@@ -1300,3 +1300,25 @@ pub mod issue152 {
1300
async fn f(&self) -> Self::Assoc {}
1301
}
1302
1303
+
1304
+// https://github.com/dtolnay/async-trait/issues/154
1305
+pub mod issue154 {
1306
+ #![deny(clippy::items_after_statements)]
1307
1308
+ use async_trait::async_trait;
1309
1310
+ #[async_trait]
1311
+ pub trait MyTrait {
1312
+ async fn f(&self);
1313
+ }
1314
1315
+ pub struct Struct;
1316
1317
1318
+ impl MyTrait for Struct {
1319
+ async fn f(&self) {
1320
+ const MAX: u16 = 128;
1321
+ println!("{}", MAX);
1322
1323
1324
+}
0 commit comments