Files
rust/tests/ui/const-generics/generic_const_exprs/feature-attribute-missing-in-dependent-crate-ice.stderr
Jacob Adam b8302ce605 Add a regression test for an ICE with the generic_const_exprs feature attribute.
It ensures that using the `generic_const_exprs` feature in a library crate
without enabling it in a dependent crate does not lead to an ICE.
2025-07-29 09:35:36 +02:00

15 lines
535 B
Plaintext

error: generic `Self` types are currently not permitted in anonymous constants
--> $DIR/feature-attribute-missing-in-dependent-crate-ice.rs:13:33
|
LL | fn validate_slice(_: &[[u8; Self::SIZE]]) -> Result<(), aux::Error> {
| ^^^^
|
note: not a concrete type
--> $DIR/feature-attribute-missing-in-dependent-crate-ice.rs:12:41
|
LL | impl<const F: usize> aux::FromSlice for Wrapper<F> {
| ^^^^^^^^^^
error: aborting due to 1 previous error