mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00

These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
14 lines
246 B
Rust
14 lines
246 B
Rust
// Make sure that we don't parse `extern crate async` as
|
|
// the front matter of a function leading us astray.
|
|
|
|
//@ edition: 2015
|
|
//@ check-pass
|
|
|
|
fn main() {}
|
|
|
|
#[cfg(false)]
|
|
extern crate async;
|
|
|
|
#[cfg(false)]
|
|
extern crate async as something_else;
|