Skip to content

Commit 4ca3bbf

Browse files
committed
parser: add test for 'extern crate async'
1 parent 27f6090 commit 4ca3bbf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Make sure that we don't parse `extern crate async`
2+
// the front matter of a function leading us astray.
3+
4+
// check-pass
5+
6+
fn main() {}
7+
8+
#[cfg(FALSE)]
9+
extern crate async;
10+
11+
#[cfg(FALSE)]
12+
extern crate async as something_else;

0 commit comments

Comments
 (0)