Skip to content

Commit 44031dc

Browse files
committed
moved renamed docs stderr | issues-71798.rs
1 parent fee8391 commit 44031dc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/ui/issues-71798.rs renamed to tests/ui/async-await/impl-future-escaping-bound-vars-ice.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//! Regression test for issue https://github.com/rust-lang/rust/issues/71798
2+
// ICE with escaping bound variables when impl Future + '_
3+
// returns non-Future type combined with syntax errors
4+
15
fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
26
//~^ ERROR `u32` is not a future
37
*x

tests/ui/issues-71798.stderr renamed to tests/ui/async-await/impl-future-escaping-bound-vars-ice.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0425]: cannot find value `u` in this scope
2-
--> $DIR/issues-71798.rs:7:24
2+
--> $DIR/impl-future-escaping-bound-vars-ice.rs:11:24
33
|
44
LL | let _ = test_ref & u;
55
| ^ not found in this scope
66

77
error[E0277]: `u32` is not a future
8-
--> $DIR/issues-71798.rs:1:25
8+
--> $DIR/impl-future-escaping-bound-vars-ice.rs:5:25
99
|
1010
LL | fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u32` is not a future

0 commit comments

Comments
 (0)