mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
18 lines
328 B
Rust
18 lines
328 B
Rust
![]() |
// edition: 2021
|
||
|
|
||
|
use std::future::Future;
|
||
|
|
||
|
trait Trait {
|
||
|
type Gat<'a>;
|
||
|
//~^ ERROR missing required bound on `Gat`
|
||
|
async fn foo(&self) -> Self::Gat<'_>;
|
||
|
}
|
||
|
|
||
|
trait Trait2 {
|
||
|
type Gat<'a>;
|
||
|
//~^ ERROR missing required bound on `Gat`
|
||
|
async fn foo(&self) -> impl Future<Output = Self::Gat<'_>>;
|
||
|
}
|
||
|
|
||
|
fn main() {}
|