mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
21 lines
407 B
Rust
21 lines
407 B
Rust
//@ ignore-backends: gcc
|
|
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
|
|
//@ ignore-windows
|
|
// Tests whether one function could implement two EIIs.
|
|
#![feature(extern_item_impls)]
|
|
|
|
#[eii(a)]
|
|
static A: u64;
|
|
|
|
#[eii(b)]
|
|
static B: u64;
|
|
|
|
#[a]
|
|
#[b]
|
|
//~^ ERROR static cannot implement multiple EIIs
|
|
static IMPL: u64 = 5;
|
|
|
|
fn main() {
|
|
println!("{A} {B} {IMPL}")
|
|
}
|