1
Fork 0

rollup merge of #20728: huonw/type-param-shadowing

Conflicts:
	src/librustc_typeck/check/wf.rs
This commit is contained in:
Alex Crichton 2015-01-07 17:30:15 -08:00
commit 6afda64d0d
3 changed files with 78 additions and 2 deletions

View file

@ -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))
}