mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
12 lines
243 B
Rust
12 lines
243 B
Rust
// edition:2021
|
|
// https://github.com/rust-lang/rust/issues/117547
|
|
|
|
trait T {}
|
|
|
|
trait MyTrait {
|
|
async fn foo() -> &'static impl T;
|
|
//~^ ERROR the associated type `<Self as MyTrait>::{opaque#0}` may not live long enough
|
|
}
|
|
|
|
fn main() {}
|