Skip to content

Compilation issue #210

@awallish

Description

@awallish

I'm trying to run a small project that uses rust's headless_chrome as a dependency. When I try to run it I'm getting a compilation error that appears to be coming from smallvec

error: expected identifier, found keyword `const`
    --> /home/alexa/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.3.0/lib.rs:1708:16
     |
1708 | unsafe impl<T, const N: usize> Array for [T; N] {
     |                ^^^^^ expected identifier, found keyword

error: expected one of `,`, `:`, `=`, or `>`, found `N`
    --> /home/alexa/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.3.0/lib.rs:1708:22
     |
1708 | unsafe impl<T, const N: usize> Array for [T; N] {
     |                      ^ expected one of `,`, `:`, `=`, or `>` here

I've also tried running with fantoccini instead of headless_chrome and I get the same issue, so perhaps there is something wrong with my setup. I'm new to rust so perhaps there is something that I'm missing?

rust 1.32.0
headless_chrome 0.0.9
fantoccini 0.13.0
smallvec 1.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions