diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-01 14:47:10 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-01 19:52:27 +0100 |
| commit | a17294dc0fe106f0a8f12f8bc61ab17eacf251ef (patch) | |
| tree | 6a30ef78b9a71241224fa6cd10e17ec53763ca6a /tests/ui/const-generics/generic_const_exprs | |
| parent | 6c76ed5503966c39381fac64eb905ac45e346695 (diff) | |
| download | rust-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.stderr | 14 |
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 | |
