3 // revisions: migrate nll
4 // Explicitly testing nll with revision, so ignore compare-mode=nll
5 // ignore-compare-mode-nll
7 #![cfg_attr(nll, feature(nll))]
8 #![feature(generic_associated_types)]
10 use std::future::Future;
13 type Connecting<'a>: Future + Send
17 fn connect(&'_ self) -> Self::Connecting<'_>;
20 fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
22 C: Client + Send + Sync,
24 async move { c.connect().await }
25 //[migrate]~^ ERROR the parameter
26 //[migrate]~| ERROR the parameter