summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-45562.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-45562.fixed')
-rw-r--r--tests/ui/issues/issue-45562.fixed6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-45562.fixed b/tests/ui/issues/issue-45562.fixed
new file mode 100644
index 000000000..ac700fbd0
--- /dev/null
+++ b/tests/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() {}