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.
15 lines
535 B
Plaintext
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
|
|
|