mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
parser: add test for 'extern crate async'
This commit is contained in:
parent
27f60906aa
commit
4ca3bbf0b2
12
src/test/ui/parser/extern-crate-async.rs
Normal file
12
src/test/ui/parser/extern-crate-async.rs
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user