diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues-71798.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/issues-71798.rs b/src/test/ui/issues-71798.rs new file mode 100644 index 000000000..14b6c0f35 --- /dev/null +++ b/src/test/ui/issues-71798.rs @@ -0,0 +1,8 @@ +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 +} |