From b6d0c9091d4f3c6a90ad8764d3c65f8480a48676 Mon Sep 17 00:00:00 2001 From: JungChul Shin <3996272+ik1ne@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:51:44 +0900 Subject: [PATCH] macros: fix trait_method breaking change detection (#6308) --- tokio/tests/macros_test.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tokio/tests/macros_test.rs b/tokio/tests/macros_test.rs index b5095e36e4b..69ee30b36ce 100644 --- a/tokio/tests/macros_test.rs +++ b/tokio/tests/macros_test.rs @@ -25,10 +25,16 @@ async fn unused_braces_test() { assert_eq!(1 + 1, 2) } fn trait_method() { trait A { fn f(self); + + fn g(self); } impl A for () { #[tokio::main] - async fn f(self) {} + async fn f(self) { + self.g() + } + + fn g(self) {} } ().f() }