error: expected item after attributes
  --> $DIR/attrs-after-extern-mod.rs:6:5
   |
LL | extern {
   |        - while parsing this item list starting here
LL |     #[cfg(stage37)]
   |     ^^^^^^^^^^^^^^^
LL | }
   | - the item list ends here

error: aborting due to previous error

