about summary refs log tree commit diff
path: root/src/test/ui/const-eval/pub_const_err.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-eval/pub_const_err.stderr')
-rw-r--r--src/test/ui/const-eval/pub_const_err.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/const-eval/pub_const_err.stderr b/src/test/ui/const-eval/pub_const_err.stderr
new file mode 100644
index 00000000000..b77ec38ca16
--- /dev/null
+++ b/src/test/ui/const-eval/pub_const_err.stderr
@@ -0,0 +1,14 @@
+error: attempt to subtract with overflow
+  --> $DIR/pub_const_err.rs:15:20
+   |
+LL | pub const Z: u32 = 0 - 1;
+   |                    ^^^^^
+   |
+note: lint level defined here
+  --> $DIR/pub_const_err.rs:11:9
+   |
+LL | #![deny(const_err)]
+   |         ^^^^^^^^^
+
+error: aborting due to previous error
+