rust/tests/ui/extern/issue-36122-accessing-externed-dst.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
139 B
Rust
Raw Normal View History

2019-11-14 01:50:32 -06:00
fn main() {
2020-09-01 16:12:52 -05:00
extern "C" {
2019-11-14 01:50:32 -06:00
static symbol: [usize]; //~ ERROR: the size for values of type
}
println!("{}", symbol[0]);
}