We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0296180 commit 0b7da96Copy full SHA for 0b7da96
src/meta.rs
@@ -401,6 +401,8 @@ fn parse_meta_path(input: ParseStream) -> Result<Path> {
401
if input.peek(Ident::peek_any) {
402
let ident = Ident::parse_any(input)?;
403
segments.push_value(PathSegment::from(ident));
404
+ } else if input.is_empty() {
405
+ return Err(input.error("expected nested attribute"));
406
} else if input.peek(Lit) {
407
return Err(input.error("unexpected literal in nested attribute, expected ident"));
408
} else {
0 commit comments