about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2018-03-20 23:01:42 -0500
committerTyler Mandry <tmandry@gmail.com>2018-03-21 00:26:00 -0500
commit94bdeb64f96b266d990ba7b76cd78a1e2ed1977f (patch)
tree24608542a81d757cb578acdd9956944f8a37cfc5 /src/libstd
parent1937661961fa54aa2bce8c301d85536916224a74 (diff)
downloadrust-94bdeb64f96b266d990ba7b76cd78a1e2ed1977f.tar.gz
rust-94bdeb64f96b266d990ba7b76cd78a1e2ed1977f.zip
termination_trait: Add () example to error message
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index d5ac2d19e83..a6aa3502f26 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -1443,7 +1443,7 @@ pub fn id() -> u32 {
 #[cfg_attr(not(test), lang = "termination")]
 #[unstable(feature = "termination_trait_lib", issue = "43301")]
 #[rustc_on_unimplemented =
-  "`main` can only return types that implement {Termination}, not `{Self}`"]
+  "`main` can only return types like `()` that implement {Termination}, not `{Self}`"]
 pub trait Termination {
     /// Is called to get the representation of the value as status code.
     /// This status code is returned to the operating system.