Skip to content

Commit

Permalink
Add a failing test on private constructor to parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Apr 25, 2024
1 parent 6ac8d8a commit 395544f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rust/parser/debug/tests/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,8 @@ fn private_keyword() {
test("private", block![(Private())]);
expect_invalid_node("private func");

expect_invalid_node("private ConstructorOutsideType");

#[rustfmt::skip]
let code = [
"type My_Type",
Expand Down

0 comments on commit 395544f

Please sign in to comment.