Skip to content

Commit b6d0c90

Browse files
authored
macros: fix trait_method breaking change detection (#6308)
1 parent 4846959 commit b6d0c90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tokio/tests/macros_test.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,16 @@ async fn unused_braces_test() { assert_eq!(1 + 1, 2) }
2525
fn trait_method() {
2626
trait A {
2727
fn f(self);
28+
29+
fn g(self);
2830
}
2931
impl A for () {
3032
#[tokio::main]
31-
async fn f(self) {}
33+
async fn f(self) {
34+
self.g()
35+
}
36+
37+
fn g(self) {}
3238
}
3339
().f()
3440
}

0 commit comments

Comments
 (0)