Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not compile a project #1070

Closed
vitw opened this issue Oct 4, 2021 · 1 comment
Closed

Can not compile a project #1070

vitw opened this issue Oct 4, 2021 · 1 comment

Comments

@vitw
Copy link

vitw commented Oct 4, 2021

Compiling wgpu-types v0.7.0
error[E0658]: match is not allowed in a const fn
--> /home/vp/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-types-0.7.0/src/lib.rs:1844:9
|
1844 | / match self {
1845 | | Self::Uchar2 | Self::Char2 | Self::Uchar2Norm | Self::Char2Norm => 2,
1846 | | Self::Uchar4
1847 | | | Self::Char4
... |
1870 | | Self::Double4 => 32,
1871 | | }
| |_________^
|
= note: see issue #49146 rust-lang/rust#49146 for more information
= help: add #![feature(const_if_match)] to the crate attributes to enable

@PossiblyAShrub
Copy link

Try updating your rust compiler, and then recompile. If you are using rustup then run rustup update.

@iced-rs iced-rs locked and limited conversation to collaborators Oct 5, 2021
@hecrj hecrj closed this as completed Oct 5, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants