parser: add test for 'extern crate async'

This commit is contained in:
Mazdak Farrokhzad 2020-02-11 08:27:50 +01:00
parent 27f60906aa
commit 4ca3bbf0b2

View 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;