Skip to content

Doesn't compile on latest nightly #37

Description

@yotamofek

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions