-
-
Notifications
You must be signed in to change notification settings - Fork 368
Open
Description
const impls are unstable, but used by the standard library (e.g. https://doc.rust-lang.org/stable/src/alloc/vec/mod.rs.html#908). They are currently not parsable by syn:
fn main() {
let r: Result<syn::File, _> = syn::parse_str(r###"const impl Foo {}"###);
println!("{:?}", r);
}will output
Err(Error("expected identifier or `_`"))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels