macros: fix trait_method breaking change detection (#6308)

This commit is contained in:
JungChul Shin 2024-01-26 22:51:44 +09:00 committed by GitHub
parent 4846959e8a
commit b6d0c9091d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()
}