Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
async-and-ret-ref.rs
blob: e0a7aef2c5f44aeb35553f3c682ef4dbd6a778ee [
file
] [
log
] [
blame
] [
edit
]
//@ edition:2021
// https://github.com/rust-lang/rust/issues/117547
trait
T
{}
trait
MyTrait
{
async
fn
foo
()
->
&
'
static
impl
T
;
//~^ ERROR the associated type `impl T` may not live long enough
}
fn
main
()
{}