mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
13 lines
228 B
Rust
13 lines
228 B
Rust
#![feature(extern_item_impls)]
|
|
|
|
const A: () = ();
|
|
#[eii(A)]
|
|
static A: u64;
|
|
//~^ ERROR the name `A` is defined multiple times
|
|
//~| ERROR expected function or static, found constant `A`
|
|
|
|
#[A]
|
|
static A_IMPL: u64 = 5;
|
|
|
|
fn main() {}
|