diff options
| author | Alexander Regueiro <alexreg@me.com> | 2018-10-22 00:45:24 +0100 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2018-11-03 04:09:34 +0000 |
| commit | 90041d638b1363d3ed89dde8245563bac4c4062c (patch) | |
| tree | e239a81f029a8e2418d06924db986a0794e210df /src/libsyntax/parse | |
| parent | 34792d9f6a831027a9c21ba2439b4a008a5ab1ad (diff) | |
| download | rust-90041d638b1363d3ed89dde8245563bac4c4062c.tar.gz rust-90041d638b1363d3ed89dde8245563bac4c4062c.zip | |
Added support for trait aliases as object types.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index be448f960df..6018744215b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1532,7 +1532,7 @@ impl<'a> Parser<'a> { if maybe_bounds && bounds.len() == 1 && !trailing_plus => { let path = match bounds[0] { GenericBound::Trait(ref pt, ..) => pt.trait_ref.path.clone(), - _ => self.bug("unexpected lifetime bound"), + GenericBound::Outlives(..) => self.bug("unexpected lifetime bound"), }; self.parse_remaining_bounds(Vec::new(), path, lo, true)? } |
