summaryrefslogtreecommitdiffstats
path: root/src/test/ui/linkage-attr/linkage-requires-raw-ptr.rs
blob: 93afc537f7c6c1175970596bc2d66293d4ca7204 (plain)
1
2
3
4
5
6
7
8
9
10
11
// rust-lang/rust#59548: We used to ICE when trying to use a static
// with a type that violated its own `#[linkage]`.

// build-fail
// aux-build:def_illtyped_external.rs

extern crate def_illtyped_external as dep;

fn main() {
    println!("{:p}", &dep::EXTERN);
}