mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
macros: fix trait_method breaking change detection (#6308)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user