forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update error messages and explicitly mention them in tests
- Loading branch information
Showing
5 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 27 additions & 17 deletions
44
src/test/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
// aux-build:extern-crate.rs | ||
extern crate extern_crate; | ||
|
||
impl extern_crate::StructWithAttr {} //~ ERROR | ||
impl extern_crate::StructWithAttr {} | ||
//~^ ERROR cannot define inherent `impl` for a type outside of the crate | ||
|
||
impl extern_crate::StructNoAttr {} //~ ERROR | ||
impl extern_crate::StructNoAttr {} | ||
//~^ ERROR cannot define inherent `impl` for a type outside of the crate | ||
|
||
impl extern_crate::EnumWithAttr {} //~ ERROR | ||
impl extern_crate::EnumWithAttr {} | ||
//~^ ERROR cannot define inherent `impl` for a type outside of the crate | ||
|
||
impl extern_crate::EnumNoAttr {} //~ ERROR | ||
impl extern_crate::EnumNoAttr {} | ||
//~^ ERROR cannot define inherent `impl` for a type outside of the crate | ||
|
||
impl f32 {} //~ ERROR | ||
impl f32 {} //~ ERROR cannot define inherent `impl` for primitive types | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters