rust/tests/ui/async-await/impl-future-escaping-bound-vars-ice.rs
Trevor Gross 3b57db4d87 Give some UI tests more apropriate names
Prepare for rework done by the rest of RUST-142440.

Co-authored-by: Kivooeo <Kivooeo123@gmail.com>
2025-07-01 16:26:56 +05:00

9 lines
203 B
Rust

fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
//~^ ERROR `u32` is not a future
*x
}
fn main() {
let _ = test_ref & u; //~ ERROR cannot find value `u` in this scope
}