We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code does not parse.
I tried this code:
pub struct Test { #[cfg(not(any( target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", )))] _value: bool, } pub fn test() -> Test { Test { #[cfg(not(any( target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", )))] _value: false, } }
https://godbolt.org/z/drr3j13Kc
I expected to see this happen: Compiles.
Instead, this happened: Compiler parsing error
<source>:13:9: error: unrecognised token '#' in struct (or enum) expression - expected '}', identifier, integer literal, or '..' 13 | #[cfg(not(any( | ^ <source>:12:5: error: failed to parse statement or expression in block expression 12 | Test { | ^~~~ <source>:19:9: error: unrecognised token 'identifier' for start of item 19 | _value: false, | ^~~~~~ <source>:19:9: error: failed to parse item in crate Compiler returned: 1
The text was updated successfully, but these errors were encountered:
P-E-P
Successfully merging a pull request may close this issue.
The following code does not parse.
I tried this code:
https://godbolt.org/z/drr3j13Kc
I expected to see this happen: Compiles.
Instead, this happened: Compiler parsing error
Meta
The text was updated successfully, but these errors were encountered: