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

Lines changed: 7 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy