-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deeply normalize signature in new solver
- Loading branch information
1 parent
87a4a73
commit 0eab7b0
Showing
10 changed files
with
134 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ui/impl-trait/recursive-coroutine-indirect.current.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
error[E0597]: `s` does not live long enough | ||
--> $DIR/check-normalized-sig-for-wf.rs:11:7 | ||
| | ||
LL | s: String, | ||
| - binding `s` declared here | ||
... | ||
LL | f(&s).0 | ||
| --^^- | ||
| | | | ||
| | borrowed value does not live long enough | ||
| argument requires that `s` is borrowed for `'static` | ||
LL | | ||
LL | } | ||
| - `s` dropped here while still borrowed | ||
|
||
error[E0521]: borrowed data escapes outside of function | ||
--> $DIR/check-normalized-sig-for-wf.rs:19:5 | ||
| | ||
LL | fn extend<T>(input: &T) -> &'static T { | ||
| ----- - let's call the lifetime of this reference `'1` | ||
| | | ||
| `input` is a reference that is only valid in the function body | ||
... | ||
LL | n(input).0 | ||
| ^^^^^^^^ | ||
| | | ||
| `input` escapes the function body here | ||
| argument requires that `'1` must outlive `'static` | ||
|
||
error[E0521]: borrowed data escapes outside of function | ||
--> $DIR/check-normalized-sig-for-wf.rs:27:5 | ||
| | ||
LL | fn extend_mut<'a, T>(input: &'a mut T) -> &'static mut T { | ||
| -- ----- `input` is a reference that is only valid in the function body | ||
| | | ||
| lifetime `'a` defined here | ||
... | ||
LL | n(input).0 | ||
| ^^^^^^^^ | ||
| | | ||
| `input` escapes the function body here | ||
| argument requires that `'a` must outlive `'static` | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
Some errors have detailed explanations: E0521, E0597. | ||
For more information about an error, try `rustc --explain E0521`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters