-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #62006 - Centril:rollup-4my59er, r=Centril
Rollup of 5 pull requests Successful merges: - #61900 (implement Error::source for Box<T: Error>) - #61979 (Implement Debug for PlaceBase) - #61981 (Closures implement Copy and Clone, generators don't) - #61996 (Add unit tests for unescaping raw (byte) strings) - #62000 (Add test for issue-54189) Failed merges: r? @ghost
- Loading branch information
Showing
6 changed files
with
75 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fn bug() -> impl for <'r> Fn() -> &'r () { || { &() } } | ||
//~^ ERROR binding for associated type `Output` references lifetime `'r` | ||
|
||
fn main() { | ||
let f = bug(); | ||
} |
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,9 @@ | ||
error[E0582]: binding for associated type `Output` references lifetime `'r`, which does not appear in the trait input types | ||
--> $DIR/issue-54189.rs:1:35 | ||
| | ||
LL | fn bug() -> impl for <'r> Fn() -> &'r () { || { &() } } | ||
| ^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0582`. |