diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-45562.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-45562.stderr b/src/test/ui/issues/issue-45562.stderr new file mode 100644 index 000000000..be259d3f8 --- /dev/null +++ b/src/test/ui/issues/issue-45562.stderr @@ -0,0 +1,12 @@ +error: const items should never be `#[no_mangle]` + --> $DIR/issue-45562.rs:3:14 + | +LL | #[no_mangle] pub const RAH: usize = 5; + | ---------^^^^^^^^^^^^^^^^ + | | + | help: try a static value: `pub static` + | + = note: `#[deny(no_mangle_const_items)]` on by default + +error: aborting due to previous error + |