2 // #70935: Check if we do not emit snippet
3 // with newlines which lead complex diagnostics.
5 use std::future::Future;
7 async fn baz<T>(_c: impl FnMut() -> T) where T: Future<Output=()> {
10 fn foo(tx: std::sync::mpsc::Sender<i32>) -> impl Future + Send {
11 //~^ ERROR: future cannot be sent between threads safely
19 fn bar(_s: impl Future + Send) {
23 let (tx, _rx) = std::sync::mpsc::channel();