summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/attrs-after-extern-mod.rs
blob: e3f0fa0fc46ac1bd685dc8cbc7160cd5c117c8a1 (plain)
1
2
3
4
5
6
7
// Make sure there's an error when given `extern { ... #[attr] }`.

fn main() {}

extern "C" {
    #[cfg(stage37)] //~ ERROR expected item after attributes
}