mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
fix linkage tests
This commit is contained in:
parent
0112f3b098
commit
1fffdafe41
@ -11,4 +11,5 @@
|
|||||||
extern {
|
extern {
|
||||||
#[linkage = "extern_weak"] static foo: isize;
|
#[linkage = "extern_weak"] static foo: isize;
|
||||||
//~^ ERROR: the `linkage` attribute is experimental and not portable
|
//~^ ERROR: the `linkage` attribute is experimental and not portable
|
||||||
|
//~^^ ERROR: the `linkage` attribute is experimental and not portable
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
|
|
||||||
#[linkage = "external"]
|
#[linkage = "external"]
|
||||||
static foo: isize = 0;
|
static foo: isize = 0;
|
||||||
//~^ ERROR: the `linkage` attribute is experimental and not portable
|
//~^^ ERROR: the `linkage` attribute is experimental and not portable
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user