]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/in-trait/lifetime-mismatch.rs
3 #![feature(async_fn_in_trait)]
4 //~^ WARN the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
7 async
fn foo
<'a
>(&self);
11 impl MyTrait
for i32 {
12 async
fn foo(&self) {}
13 //~^ ERROR lifetime parameters or bounds on method `foo` do not match the trait declaration