Skip to content

Commit c3fe450

Browse files
author
Nick Hamann
committed
Fix typo.
1 parent 4f275e3 commit c3fe450

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4564,7 +4564,7 @@ impl<'a> Parser<'a> {
45644564
if try!(self.eat(&token::DotDot) ){
45654565
if generics.is_parameterized() {
45664566
self.span_err(impl_span, "default trait implementations are not \
4567-
allowed to have genercis");
4567+
allowed to have generics");
45684568
}
45694569

45704570
try!(self.expect(&token::OpenDelim(token::Brace)));

src/test/compile-fail/syntaxt-default-trait-impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
trait MyDefaultImpl {}
1414

1515
impl<T> MyDefaultImpl for .. {}
16-
//~^ ERROR default trait implementations are not allowed to have genercis
16+
//~^ ERROR default trait implementations are not allowed to have generics
1717

1818
fn main() {}

0 commit comments

Comments
 (0)