]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rust-2021/reserved-prefixes-migration.rs
3 // compile-flags: -Z unstable-options --edition 2018
5 #![warn(rust_2021_prefixes_incompatible_syntax)]
12 ($a
:tt $b
:tt $c
:tt
) => {}
;
17 //~^ WARNING prefix `z` is unknown [rust_2021_prefixes_incompatible_syntax]
18 //~| WARNING hard error in Rust 2021
20 //~^ WARNING prefix `prefix` is unknown [rust_2021_prefixes_incompatible_syntax]
21 //~| WARNING hard error in Rust 2021
23 //~^ WARNING prefix `hey` is unknown [rust_2021_prefixes_incompatible_syntax]
24 //~| WARNING hard error in Rust 2021
26 //~^ WARNING prefix `hey` is unknown [rust_2021_prefixes_incompatible_syntax]
27 //~| WARNING hard error in Rust 2021
31 (# name = # kind # value) => {};
36 //~^ WARNING prefix `kind` is unknown [rust_2021_prefixes_incompatible_syntax]
37 //~| WARNING hard error in Rust 2021