mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Fix typo.
This commit is contained in:
parent
efb5a85e59
commit
d8d4a6a842
|
@ -4564,7 +4564,7 @@ fn parse_item_impl(&mut self, unsafety: ast::Unsafety) -> PResult<ItemInfo> {
|
|||
if try!(self.eat(&token::DotDot) ){
|
||||
if generics.is_parameterized() {
|
||||
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)));
|
||||
|
|
|
@ -13,6 +13,6 @@
|
|||
trait MyDefaultImpl {}
|
||||
|
||||
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() {}
|
||||
|
|
Loading…
Reference in a new issue