Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
attributes
/
no-mangle-on-const-error.fixed
blob: 0612385521ddeb9a06102e529bdfd8e71b38ebca [
file
]
//! Regression test for https://github.com/rust-lang/rust/issues/45562
//@ run-rustfix
#![deny(unused_attributes)]
#[no_mangle] pub static RAH: usize = 5;
//~^ ERROR const items should never be `#[no_mangle]`
fn main
()
{}