summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-45562.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-45562.fixed')
-rw-r--r--src/test/ui/issues/issue-45562.fixed6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-45562.fixed b/src/test/ui/issues/issue-45562.fixed
new file mode 100644
index 000000000..ac700fbd0
--- /dev/null
+++ b/src/test/ui/issues/issue-45562.fixed
@@ -0,0 +1,6 @@
+// run-rustfix
+
+#[no_mangle] pub static RAH: usize = 5;
+//~^ ERROR const items should never be `#[no_mangle]`
+
+fn main() {}