]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/attrs-after-extern-mod.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / attrs-after-extern-mod.rs
1 // Constants (static variables) can be used to match in patterns, but mutable
2 // statics cannot. This ensures that there's some form of error if this is
3 // attempted.
4
5 extern crate libc;
6
7 extern {
8     static mut rust_dbg_static_mut: libc::c_int;
9     pub fn rust_dbg_static_mut_check_four();
10     #[cfg(stage37)] //~ ERROR expected item after attributes
11 }
12
13 pub fn main() {}