]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/expansion-time.rs
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / lint / expansion-time.rs
1 // check-pass
2
3 #[warn(meta_variable_misuse)]
4 macro_rules! foo {
5 ( $($i:ident)* ) => { $($i)+ }; //~ WARN meta-variable repeats with different Kleene operator
6 }
7
8 #[warn(soft_unstable)]
9 mod benches {
10 #[bench] //~ WARN use of unstable library feature 'test'
11 //~| WARN this was previously accepted
12 fn foo() {}
13 }
14
15 #[warn(incomplete_include)]
16 fn main() {
17 // WARN see in the stderr file, the warning points to the included file.
18 include!("expansion-time-include.rs");
19 }