Skip to content

Commit

Permalink
macros: fix trait_method breaking change detection (#6308)
Browse files Browse the repository at this point in the history
  • Loading branch information
ik1ne authored Jan 26, 2024
1 parent 4846959 commit b6d0c90
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tokio/tests/macros_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit b6d0c90

Please sign in to comment.