diff options
Diffstat (limited to 'tests/ui/parser/extern-crate-async.rs')
-rw-r--r-- | tests/ui/parser/extern-crate-async.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/extern-crate-async.rs b/tests/ui/parser/extern-crate-async.rs new file mode 100644 index 000000000..6a54ac7f4 --- /dev/null +++ b/tests/ui/parser/extern-crate-async.rs @@ -0,0 +1,12 @@ +// Make sure that we don't parse `extern crate async` +// the front matter of a function leading us astray. + +// check-pass + +fn main() {} + +#[cfg(FALSE)] +extern crate async; + +#[cfg(FALSE)] +extern crate async as something_else; |