Files
rust/tests/ui/eii/static/multiple_impls.rs
T
2026-04-11 10:17:44 +02:00

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}")
}