1 // Test for diagnostic improvement issue #76547
10 pub struct ListFut<'a>(&'a mut [&'a mut [u8]]);
11 impl<'a> Future for ListFut<'a> {
14 fn poll(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Self::Output> {
19 async fn fut(bufs: &mut [&mut [u8]]) {
21 //~^ ERROR lifetime may not live long enough
24 pub struct ListFut2<'a>(&'a mut [&'a mut [u8]]);
25 impl<'a> Future for ListFut2<'a> {
28 fn poll(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Self::Output> {
33 async fn fut2(bufs: &mut [&mut [u8]]) -> i32 {
35 //~^ ERROR lifetime may not live long enough