14 lines
263 B
Rust
14 lines
263 B
Rust
|
//@ edition: 2021
|
||
|
|
||
|
trait MyTrait {
|
||
|
async fn foo(self) -> (Self, i32);
|
||
|
}
|
||
|
|
||
|
impl MyTrait for xyz::T { //~ ERROR failed to resolve: use of undeclared crate or module `xyz`
|
||
|
async fn foo(self, key: i32) -> (u32, i32) {
|
||
|
(self, key)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|