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
Due to rust-lang/rust#24189, we can’t match attributes on enum variants:
enum
#[macro_use] extern crate enum_primitive; enum_from_primitive! { enum FooBar { Foo = 17, #[doc = "bar"] Bar = 42, } }
r.rs:6:5: 6:6 error: local ambiguity: multiple parsing options: built-in NTs ident ('variant') or 1 other options. r.rs:6 #[doc = "bar"] ^
The text was updated successfully, but these errors were encountered:
Same happens for simple doc comments
#[macro_use] extern crate enum_primitive; enum_from_primitive! { enum FooBar { Foo = 17, /// bar Bar = 42, } }
Sorry, something went wrong.
I too am running into the same problem as nwin
This was fixed in Rust 1.20.
No branches or pull requests
Due to rust-lang/rust#24189, we can’t match attributes on
enum
variants:The text was updated successfully, but these errors were encountered: