2024-02-16 20:02:50 +00:00
|
|
|
//@ edition:2021
|
2023-11-04 17:00:33 +08:00
|
|
|
// https://github.com/rust-lang/rust/issues/117547
|
|
|
|
|
|
|
|
trait T {}
|
|
|
|
|
|
|
|
trait MyTrait {
|
|
|
|
async fn foo() -> &'static impl T;
|
2024-02-27 16:11:35 +00:00
|
|
|
//~^ ERROR the associated type `impl T` may not live long enough
|
2023-11-04 17:00:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|