rust/tests/ui/parser/extern-crate-async.rs
Lukas Wirth 49969468b5 Add missing 2015 edition directives
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
2025-06-03 11:45:58 +02:00

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;