-
Notifications
You must be signed in to change notification settings - Fork 227
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
error[E0658]: match
is not allowed in a const fn
#220
Comments
Socket2 v0.4 requires rustc v1.46. |
@Thomasdezeeuw can you reopen ? |
@tychota I think you're doing something wrong. socket2 rust on rustc 1.46 stable. Are you sure you're calling the same rustc? P.S. could you also not use images of texts, it's very annoying to read. |
@Thomasdezeeuw i will try to make a minimal example that reproduce and then report here. My bad for the image, i will paste texte next time. |
@tychota you're really running a different/incorrect rustc binary. Per the 1.46 blogpost: https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html#const-fn-improvements, |
All clear. I indeed has an old rust binary somewhere. Sorry for the noise. |
error[E0658]:
match
is not allowed in aconst fn
-->/socket2-0.4.0/src/lib.rs:156:9
|
156 | / match address {
157 | | SocketAddr::V4() => Domain::IPV4,
158 | | SocketAddr::V6() => Domain::IPV6,
159 | | }
| |_________^
|
= note: see issue #49146 rust-lang/rust#49146 for more information
Compiling time v0.1.43
error: aborting due to previous error
The text was updated successfully, but these errors were encountered: