mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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() {}
|