mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
macros: fix trait_method breaking change detection (#6308)
This commit is contained in:
parent
4846959e8a
commit
b6d0c9091d
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user