error: must have type `*const T` or `*mut T` due to `#[linkage]` attribute
  --> $DIR/linkage2.rs:12:5
   |
LL |     static foo: i32;
   |     ^^^^^^^^^^^^^^^^

error: aborting due to previous error

