macros: fix trait_method breaking change detection (#6308)

This commit is contained in:
JungChul Shin
2024-01-26 14:51:44 +01:00
committed by GitHub
parent 4846959e8a
commit b6d0c9091d
+7 -1
View File
@@ -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()
}