We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
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
match
const fn
#![feature(const_if_match)]
The text was updated successfully, but these errors were encountered:
Try updating your rust compiler, and then recompile. If you are using rustup then run rustup update.
rustup update
Sorry, something went wrong.
No branches or pull requests
Compiling wgpu-types v0.7.0
error[E0658]:
match
is not allowed in aconst 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 enableThe text was updated successfully, but these errors were encountered: