about summary refs log tree commit diff
path: root/src/test/ui/const-eval-overflow-4.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-eval-overflow-4.stderr')
-rw-r--r--src/test/ui/const-eval-overflow-4.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/const-eval-overflow-4.stderr b/src/test/ui/const-eval-overflow-4.stderr
new file mode 100644
index 00000000000..d35b9c6c571
--- /dev/null
+++ b/src/test/ui/const-eval-overflow-4.stderr
@@ -0,0 +1,8 @@
+error[E0080]: constant evaluation error
+  --> $DIR/const-eval-overflow-4.rs:23:13
+   |
+23 |     : [u32; (i8::MAX as i8 + 1i8) as usize]
+   |             ^^^^^^^^^^^^^^^^^^^^^ attempt to add with overflow
+
+error: aborting due to previous error
+