gccrs: fixed compiler error message on wildcard pattern within expression
authorAbdul Rafey <abdulrafeyq@gmail.com>
Sun, 29 Jan 2023 11:35:23 +0000 (17:05 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:18 +0000 (10:47 +0200)
commit760f529d8138b8b6afb6f17274af194d6fd5de12
treee1bdd9fafddb6df18168c2d629e29bc23a3afe4b
parentd6cb04bf5c0d77f60572f6f076fb602a8aeabf98
gccrs: fixed compiler error message on wildcard pattern within expression

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::null_denotation): Add proper error
when seeing wildcard var on right side of assignment.

gcc/testsuite/ChangeLog:

* rust/compile/issue-867.rs: New test.

Signed-off-by: Abdul Rafey <abdulrafeyq@gmail.com>
gcc/rust/parse/rust-parse-impl.h
gcc/testsuite/rust/compile/issue-867.rs [new file with mode: 0644]