Closed
Description
This PR broke the current functionality: rust-lang/rust#70107
Starting with the June 3rd nightly, staticvec
fails to build.
IIUC, this is not a compiler bug, but rather a feature.
I think that until const bounds are implemented, there is no way to implement concat
and all the other "combination" helpers.
error: constant expression depends on a generic parameter
--> /Users/yotam/.cargo/registry/src/github.com-1ecc6299db9ec823/staticvec-0.9.3/src/lib.rs:1467:70
|
1467 | pub fn concat<const N2: usize>(&self, other: &StaticVec<T, N2>) -> StaticVec<T, { N + N2 }>
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
Metadata
Metadata
Assignees
Labels
No labels