diff options
| author | Eric Huss <eric@huss.org> | 2018-03-12 13:21:43 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2018-03-14 12:23:28 -0700 |
| commit | 6aa4dcb9cf615ca4dd01b5f732d171103028c78b (patch) | |
| tree | 664c168a59c6bf10dd2af711b62348e077342b8d /src/test/ui/missing-items | |
| parent | b4b7ccbd1ce1d794f4f9718ec0182b15591b73fa (diff) | |
Add empty main() to tests where it is missing.
Diffstat (limited to 'src/test/ui/missing-items')
| -rw-r--r-- | src/test/ui/missing-items/m2.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/missing-items/m2.stderr | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/test/ui/missing-items/m2.rs b/src/test/ui/missing-items/m2.rs index 9f195452691..f655047f6f5 100644 --- a/src/test/ui/missing-items/m2.rs +++ b/src/test/ui/missing-items/m2.rs @@ -18,3 +18,5 @@ struct X { impl m1::X for X { //~ ERROR not all trait items implemented } + +fn main() {} diff --git a/src/test/ui/missing-items/m2.stderr b/src/test/ui/missing-items/m2.stderr index 3b611518283..3f7a4039eb7 100644 --- a/src/test/ui/missing-items/m2.stderr +++ b/src/test/ui/missing-items/m2.stderr @@ -1,5 +1,3 @@ -error[E0601]: main function not found in crate m2 - error[E0046]: not all trait items implemented, missing: `CONSTANT`, `Type`, `method` --> $DIR/m2.rs:19:1 | @@ -10,7 +8,6 @@ LL | impl m1::X for X { //~ ERROR not all trait items implemented = note: `Type` from trait: `type Type;` = note: `method` from trait: `fn(&Self, std::string::String) -> <Self as m1::X>::Type` -error: aborting due to 2 previous errors +error: aborting due to previous error -Some errors occurred: E0046, E0601. -For more information about an error, try `rustc --explain E0046`. +For more information about this error, try `rustc --explain E0046`. |
