about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/async-and-ret-ref.rs
blob: e991b74a0f81a4486d7f69c5e9b4af7d86226876 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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() {}