You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/nll/issue-54382-use-span-of-tail-of-block.stderr
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ LL | D("other").next(&_thing1)
8
8
| a temporary with access to the borrow is created here ...
9
9
...
10
10
LL | }
11
-
| -
12
-
| |
13
-
| `_thing1` dropped here while still borrowed
14
-
| ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
11
+
| - `_thing1` dropped here while still borrowed
12
+
LL |
13
+
LL | ;
14
+
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
15
15
|
16
16
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
Copy file name to clipboardExpand all lines: src/test/ui/nll/issue-54556-temps-in-tail-diagnostic.stderr
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ LL | D(&_thing1).end()
7
7
| | borrowed value does not live long enough
8
8
| a temporary with access to the borrow is created here ...
9
9
LL | }
10
-
| -
11
-
| |
12
-
| `_thing1` dropped here while still borrowed
13
-
| ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
10
+
| - `_thing1` dropped here while still borrowed
11
+
LL |
12
+
LL | ;
13
+
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
14
14
|
15
15
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
0 commit comments