We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f275e3 commit c3fe450Copy full SHA for c3fe450
src/libsyntax/parse/parser.rs
@@ -4564,7 +4564,7 @@ impl<'a> Parser<'a> {
4564
if try!(self.eat(&token::DotDot) ){
4565
if generics.is_parameterized() {
4566
self.span_err(impl_span, "default trait implementations are not \
4567
- allowed to have genercis");
+ allowed to have generics");
4568
}
4569
4570
try!(self.expect(&token::OpenDelim(token::Brace)));
src/test/compile-fail/syntaxt-default-trait-impls.rs
@@ -13,6 +13,6 @@
13
trait MyDefaultImpl {}
14
15
impl<T> MyDefaultImpl for .. {}
16
-//~^ ERROR default trait implementations are not allowed to have genercis
+//~^ ERROR default trait implementations are not allowed to have generics
17
18
fn main() {}
0 commit comments