mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 12:37:32 +00:00
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
10 lines
263 B
Rust
10 lines
263 B
Rust
//@ revisions: rust2015 rust2018 rust2021
|
|
//@[rust2015] edition:2015
|
|
//@[rust2018] edition:2018
|
|
//@[rust2021] edition:2021
|
|
fn main() {
|
|
println!('hello world');
|
|
//~^ ERROR unterminated character literal
|
|
//[rust2021]~| ERROR prefix `world` is unknown
|
|
}
|