rust/tests/ui/issues/issue-45562.rs

7 lines
124 B
Rust

//@ run-rustfix
#[no_mangle] pub const RAH: usize = 5;
//~^ ERROR const items should never be `#[no_mangle]`
fn main() {}