about summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2018-03-12 13:21:43 -0700
committerEric Huss <eric@huss.org>2018-03-14 12:23:28 -0700
commit6aa4dcb9cf615ca4dd01b5f732d171103028c78b (patch)
tree664c168a59c6bf10dd2af711b62348e077342b8d /src/test/ui/span
parentb4b7ccbd1ce1d794f4f9718ec0182b15591b73fa (diff)
downloadrust-6aa4dcb9cf615ca4dd01b5f732d171103028c78b.tar.gz
rust-6aa4dcb9cf615ca4dd01b5f732d171103028c78b.zip
Add empty main() to tests where it is missing.
Diffstat (limited to 'src/test/ui/span')
-rw-r--r--src/test/ui/span/issue-35987.rs2
-rw-r--r--src/test/ui/span/issue-35987.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/span/issue-35987.rs b/src/test/ui/span/issue-35987.rs
index fa0410686c2..19e05f33825 100644
--- a/src/test/ui/span/issue-35987.rs
+++ b/src/test/ui/span/issue-35987.rs
@@ -20,3 +20,5 @@ impl<T: Clone, Add> Add for Foo<T> {
         unimplemented!();
     }
 }
+
+fn main() {}
diff --git a/src/test/ui/span/issue-35987.stderr b/src/test/ui/span/issue-35987.stderr
index 09d34f3d1af..2d4a7cc72f5 100644
--- a/src/test/ui/span/issue-35987.stderr
+++ b/src/test/ui/span/issue-35987.stderr
@@ -8,7 +8,5 @@ help: possible better candidate is found in another module, you can import it in
 LL | use std::ops::Add;
    |
 
-error[E0601]: main function not found in crate issue_35987
-
 error: cannot continue compilation due to previous error