rollup merge of #20728: huonw/type-param-shadowing
Conflicts: src/librustc_typeck/check/wf.rs
This commit is contained in:
commit
6afda64d0d
3 changed files with 78 additions and 2 deletions
|
@ -1396,7 +1396,7 @@ impl<T: Iterator<Item=char>> Parser<T> {
|
|||
self.ch == Some(c)
|
||||
}
|
||||
|
||||
fn error<T>(&self, reason: ErrorCode) -> Result<T, ParserError> {
|
||||
fn error<U>(&self, reason: ErrorCode) -> Result<U, ParserError> {
|
||||
Err(SyntaxError(reason, self.line, self.col))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue