summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-const-items/unsatisfied-evaluatable-bounds.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-const-items/unsatisfied-evaluatable-bounds.stderr')
-rw-r--r--tests/ui/generic-const-items/unsatisfied-evaluatable-bounds.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/generic-const-items/unsatisfied-evaluatable-bounds.stderr b/tests/ui/generic-const-items/unsatisfied-evaluatable-bounds.stderr
new file mode 100644
index 000000000..bed213b0c
--- /dev/null
+++ b/tests/ui/generic-const-items/unsatisfied-evaluatable-bounds.stderr
@@ -0,0 +1,9 @@
+error[E0080]: evaluation of `POSITIVE::<0>::{constant#0}` failed
+ --> $DIR/unsatisfied-evaluatable-bounds.rs:8:10
+ |
+LL | [(); N - 1]:;
+ | ^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0080`.