Closed
Description
Alternate title: "Rust is literally C++" https://wg21.link/N1757
As of nightly-2020-10-29, rustc fails to parse the following code. The previous nightly and all past stable releases since 1.0.0 are not affected.
pub fn f() -> Option<fn() -> Option<bool>> {
None
}
error: unmatched angle bracket
--> src/main.rs:1:42
|
1 | pub fn f() -> Option<fn() -> Option<bool>> {
| ^^ help: remove extra angle bracket
error: expected one of `,` or `>`, found `{`
--> src/main.rs:1:44
|
1 | pub fn f() -> Option<fn() -> Option<bool>> {
| ^ expected one of `,` or `>`
The relevant commit range is 07e968b...31ee872.