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