rust/src/test/ui/const-generics/occurs-check/unify-n-nplusone.stderr

11 lines
335 B
Plaintext
Raw Normal View History

2020-09-09 02:43:53 -05:00
error: constant expression depends on a generic parameter
--> $DIR/unify-n-nplusone.rs:6:44
|
LL | fn bind<const N: usize>(value: [u8; N]) -> [u8; N + 1] {
| ^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
error: aborting due to previous error