forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#63759 - Centril:parse-default-async-fn, r=p…
…etrochenkov Allow 'default async fn' to parse. - Parse default async fn. Fixes rust-lang#63716. (`cherry-pick`ed from 3rd commit in rust-lang#63749.) r? @petrochenkov
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Ensure that `default async fn` will parse. | ||
// See issue #63716 for details. | ||
|
||
// check-pass | ||
// edition:2018 | ||
|
||
#![feature(specialization)] | ||
|
||
fn main() {} | ||
|
||
#[cfg(FALSE)] | ||
impl Foo for Bar { | ||
default async fn baz() {} | ||
} |