2020-05-02 12:50:57 -07:00
|
|
|
fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
|
2022-02-14 16:10:22 +00:00
|
|
|
//~^ ERROR `u32` is not a future
|
2022-02-16 15:48:46 +00:00
|
|
|
*x
|
2020-05-02 12:50:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = test_ref & u; //~ ERROR cannot find value `u` in this scope
|
|
|
|
}
|