about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-12-01 14:47:10 +0100
committerRalf Jung <post@ralfj.de>2024-12-01 19:52:27 +0100
commita17294dc0fe106f0a8f12f8bc61ab17eacf251ef (patch)
tree6a30ef78b9a71241224fa6cd10e17ec53763ca6a /tests/ui/const-generics/generic_const_exprs
parent6c76ed5503966c39381fac64eb905ac45e346695 (diff)
downloadrust-a17294dc0fe106f0a8f12f8bc61ab17eacf251ef.tar.gz
rust-a17294dc0fe106f0a8f12f8bc61ab17eacf251ef.zip
fix ICE when promoted has layout size overflow
Diffstat (limited to 'tests/ui/const-generics/generic_const_exprs')
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unevaluated-const-ice-119731.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/const-generics/generic_const_exprs/unevaluated-const-ice-119731.stderr b/tests/ui/const-generics/generic_const_exprs/unevaluated-const-ice-119731.stderr
index 30a45ce377e..4eb374b2020 100644
--- a/tests/ui/const-generics/generic_const_exprs/unevaluated-const-ice-119731.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/unevaluated-const-ice-119731.stderr
@@ -72,6 +72,20 @@ help: add `#![feature(adt_const_params)]` to the crate attributes to enable more
 LL + #![feature(adt_const_params)]
    |
 
+note: erroneous constant encountered
+  --> $DIR/unevaluated-const-ice-119731.rs:22:19
+   |
+LL |     impl v17<512, v0> {
+   |                   ^^
+
+note: erroneous constant encountered
+  --> $DIR/unevaluated-const-ice-119731.rs:22:19
+   |
+LL |     impl v17<512, v0> {
+   |                   ^^
+   |
+   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+
 error: maximum number of nodes exceeded in constant v20::v17::<v10, v2>::{constant#0}
   --> $DIR/unevaluated-const-ice-119731.rs:28:37
    |