diff options
Diffstat (limited to 'src/test/ui/parser/default-on-wrong-item-kind.rs')
| -rw-r--r-- | src/test/ui/parser/default-on-wrong-item-kind.rs | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/test/ui/parser/default-on-wrong-item-kind.rs b/src/test/ui/parser/default-on-wrong-item-kind.rs index 982ee6d83b3..98a95cfa35a 100644 --- a/src/test/ui/parser/default-on-wrong-item-kind.rs +++ b/src/test/ui/parser/default-on-wrong-item-kind.rs @@ -31,110 +31,110 @@ mod free_items { #[cfg(FALSE)] extern "C" { default extern crate foo; //~ ERROR an extern crate cannot be `default` - //~^ ERROR extern crate not supported in `extern` block + //~^ ERROR extern crate is not supported in `extern` blocks default use foo; //~ ERROR a `use` import cannot be `default` - //~^ ERROR `use` import not supported in `extern` block + //~^ ERROR `use` import is not supported in `extern` blocks default static foo: u8; //~ ERROR a static item cannot be `default` default const foo: u8; //~^ ERROR extern items cannot be `const` default fn foo(); default mod foo {} //~ ERROR a module cannot be `default` - //~^ ERROR module not supported in `extern` block + //~^ ERROR module is not supported in `extern` blocks default extern "C" {} //~ ERROR an extern block cannot be `default` - //~^ ERROR extern block not supported in `extern` block + //~^ ERROR extern block is not supported in `extern` blocks default type foo = u8; default enum foo {} //~ ERROR an enum cannot be `default` - //~^ ERROR enum not supported in `extern` block + //~^ ERROR enum is not supported in `extern` blocks default struct foo {} //~ ERROR a struct cannot be `default` - //~^ ERROR struct not supported in `extern` block + //~^ ERROR struct is not supported in `extern` blocks default union foo {} //~ ERROR a union cannot be `default` - //~^ ERROR union not supported in `extern` block + //~^ ERROR union is not supported in `extern` blocks default trait foo {} //~ ERROR a trait cannot be `default` - //~^ ERROR trait not supported in `extern` block + //~^ ERROR trait is not supported in `extern` blocks default trait foo = Ord; //~ ERROR a trait alias cannot be `default` - //~^ ERROR trait alias not supported in `extern` block + //~^ ERROR trait alias is not supported in `extern` blocks default impl foo {} - //~^ ERROR implementation not supported in `extern` block + //~^ ERROR implementation is not supported in `extern` blocks default!(); default::foo::bar!(); default default!(); //~ ERROR an item macro invocation cannot be `default` default default::foo::bar!(); //~ ERROR an item macro invocation cannot be `default` default macro foo {} //~ ERROR a macro definition cannot be `default` - //~^ ERROR macro definition not supported in `extern` block + //~^ ERROR macro definition is not supported in `extern` blocks default macro_rules! foo {} //~ ERROR a macro definition cannot be `default` - //~^ ERROR macro definition not supported in `extern` block + //~^ ERROR macro definition is not supported in `extern` blocks } #[cfg(FALSE)] impl S { default extern crate foo; //~ ERROR an extern crate cannot be `default` - //~^ ERROR extern crate not supported in `trait` or `impl` + //~^ ERROR extern crate is not supported in `trait`s or `impl`s default use foo; //~ ERROR a `use` import cannot be `default` - //~^ ERROR `use` import not supported in `trait` or `impl` + //~^ ERROR `use` import is not supported in `trait`s or `impl`s default static foo: u8; //~ ERROR a static item cannot be `default` //~^ ERROR associated `static` items are not allowed default const foo: u8; default fn foo(); default mod foo {}//~ ERROR a module cannot be `default` - //~^ ERROR module not supported in `trait` or `impl` + //~^ ERROR module is not supported in `trait`s or `impl`s default extern "C" {} //~ ERROR an extern block cannot be `default` - //~^ ERROR extern block not supported in `trait` or `impl` + //~^ ERROR extern block is not supported in `trait`s or `impl`s default type foo = u8; default enum foo {} //~ ERROR an enum cannot be `default` - //~^ ERROR enum not supported in `trait` or `impl` + //~^ ERROR enum is not supported in `trait`s or `impl`s default struct foo {} //~ ERROR a struct cannot be `default` - //~^ ERROR struct not supported in `trait` or `impl` + //~^ ERROR struct is not supported in `trait`s or `impl`s default union foo {} //~ ERROR a union cannot be `default` - //~^ ERROR union not supported in `trait` or `impl` + //~^ ERROR union is not supported in `trait`s or `impl`s default trait foo {} //~ ERROR a trait cannot be `default` - //~^ ERROR trait not supported in `trait` or `impl` + //~^ ERROR trait is not supported in `trait`s or `impl`s default trait foo = Ord; //~ ERROR a trait alias cannot be `default` - //~^ ERROR trait alias not supported in `trait` or `impl` + //~^ ERROR trait alias is not supported in `trait`s or `impl`s default impl foo {} - //~^ ERROR implementation not supported in `trait` or `impl` + //~^ ERROR implementation is not supported in `trait`s or `impl`s default!(); default::foo::bar!(); default default!(); //~ ERROR an item macro invocation cannot be `default` default default::foo::bar!(); //~ ERROR an item macro invocation cannot be `default` default macro foo {} //~ ERROR a macro definition cannot be `default` - //~^ ERROR macro definition not supported in `trait` or `impl` + //~^ ERROR macro definition is not supported in `trait`s or `impl`s default macro_rules! foo {} //~ ERROR a macro definition cannot be `default` - //~^ ERROR macro definition not supported in `trait` or `impl` + //~^ ERROR macro definition is not supported in `trait`s or `impl`s } #[cfg(FALSE)] trait T { default extern crate foo; //~ ERROR an extern crate cannot be `default` - //~^ ERROR extern crate not supported in `trait` or `impl` + //~^ ERROR extern crate is not supported in `trait`s or `impl`s default use foo; //~ ERROR a `use` import cannot be `default` - //~^ ERROR `use` import not supported in `trait` or `impl` + //~^ ERROR `use` import is not supported in `trait`s or `impl`s default static foo: u8; //~ ERROR a static item cannot be `default` //~^ ERROR associated `static` items are not allowed default const foo: u8; default fn foo(); default mod foo {}//~ ERROR a module cannot be `default` - //~^ ERROR module not supported in `trait` or `impl` + //~^ ERROR module is not supported in `trait`s or `impl`s default extern "C" {} //~ ERROR an extern block cannot be `default` - //~^ ERROR extern block not supported in `trait` or `impl` + //~^ ERROR extern block is not supported in `trait`s or `impl`s default type foo = u8; default enum foo {} //~ ERROR an enum cannot be `default` - //~^ ERROR enum not supported in `trait` or `impl` + //~^ ERROR enum is not supported in `trait`s or `impl`s default struct foo {} //~ ERROR a struct cannot be `default` - //~^ ERROR struct not supported in `trait` or `impl` + //~^ ERROR struct is not supported in `trait`s or `impl`s default union foo {} //~ ERROR a union cannot be `default` - //~^ ERROR union not supported in `trait` or `impl` + //~^ ERROR union is not supported in `trait`s or `impl`s default trait foo {} //~ ERROR a trait cannot be `default` - //~^ ERROR trait not supported in `trait` or `impl` + //~^ ERROR trait is not supported in `trait`s or `impl`s default trait foo = Ord; //~ ERROR a trait alias cannot be `default` - //~^ ERROR trait alias not supported in `trait` or `impl` + //~^ ERROR trait alias is not supported in `trait`s or `impl`s default impl foo {} - //~^ ERROR implementation not supported in `trait` or `impl` + //~^ ERROR implementation is not supported in `trait`s or `impl`s default!(); default::foo::bar!(); default default!(); //~ ERROR an item macro invocation cannot be `default` default default::foo::bar!(); //~ ERROR an item macro invocation cannot be `default` default macro foo {} //~ ERROR a macro definition cannot be `default` - //~^ ERROR macro definition not supported in `trait` or `impl` + //~^ ERROR macro definition is not supported in `trait`s or `impl`s default macro_rules! foo {} //~ ERROR a macro definition cannot be `default` - //~^ ERROR macro definition not supported in `trait` or `impl` + //~^ ERROR macro definition is not supported in `trait`s or `impl`s } |
