From fbf01a8bf2dfbe08a4e72f32b6e690f59a51f85a Mon Sep 17 00:00:00 2001 From: kawaemon Date: Mon, 16 May 2022 23:05:15 +0900 Subject: [PATCH] Tests for #177 --- tests/test.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test.rs b/tests/test.rs index ea6dd02..39f101c 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1374,6 +1374,16 @@ pub mod issue169 { pub fn test(_t: &dyn Trait) {} } +// https://github.com/dtolnay/async-trait/issues/177 +pub mod issue177 { + use async_trait::async_trait; + + #[async_trait] + trait Foo { + async fn foo(&self, _callback: impl FnMut(&str) + Send) {} + } +} + // https://github.com/dtolnay/async-trait/issues/183 pub mod issue183 { #![deny(clippy::shadow_same)]