libsyntax: Stop parsing [const T]
.
This commit is contained in:
parent
0d52b22e7b
commit
46d4cc12d1
1 changed files with 1 additions and 1 deletions
|
@ -1176,7 +1176,7 @@ pub impl Parser {
|
|||
} else if *self.token == token::LBRACKET {
|
||||
self.bump();
|
||||
let mutbl = self.parse_mutability();
|
||||
if mutbl == m_mutbl { // `m_const` too after snapshot
|
||||
if mutbl == m_mutbl || mutbl == m_const {
|
||||
self.obsolete(*self.last_span, ObsoleteMutVector);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue