1
Fork 0

Fix typo.

This commit is contained in:
Nick Hamann 2015-05-21 01:17:50 -05:00
parent efb5a85e59
commit d8d4a6a842
2 changed files with 2 additions and 2 deletions

View file

@ -4564,7 +4564,7 @@ impl<'a> Parser<'a> {
if try!(self.eat(&token::DotDot) ){ if try!(self.eat(&token::DotDot) ){
if generics.is_parameterized() { if generics.is_parameterized() {
self.span_err(impl_span, "default trait implementations are not \ self.span_err(impl_span, "default trait implementations are not \
allowed to have genercis"); allowed to have generics");
} }
try!(self.expect(&token::OpenDelim(token::Brace))); try!(self.expect(&token::OpenDelim(token::Brace)));

View file

@ -13,6 +13,6 @@
trait MyDefaultImpl {} trait MyDefaultImpl {}
impl<T> MyDefaultImpl for .. {} impl<T> MyDefaultImpl for .. {}
//~^ ERROR default trait implementations are not allowed to have genercis //~^ ERROR default trait implementations are not allowed to have generics
fn main() {} fn main() {}