about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2017-12-21 12:03:01 +0100
committerBastian Köcher <git@kchr.de>2017-12-26 12:26:39 +0100
commit99a108c03654cd9d2df21223eb55a5dfd6552cb8 (patch)
treedb3d4edc8b0fc76e92a707e587883245d77986d1 /src/libstd
parent011c9eac357ea4a02a4e4f821d0cb1e043b0227d (diff)
downloadrust-99a108c03654cd9d2df21223eb55a5dfd6552cb8.tar.gz
rust-99a108c03654cd9d2df21223eb55a5dfd6552cb8.zip
Fixes compilation errors and adds proposed improvements
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/termination.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/termination.rs b/src/libstd/termination.rs
index a08d3dd2d52..5eeaa542b41 100644
--- a/src/libstd/termination.rs
+++ b/src/libstd/termination.rs
@@ -21,6 +21,8 @@ use libc;
 /// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
 #[cfg_attr(not(stage0), lang = "termination")]
 #[unstable(feature = "termination_trait", issue = "0")]
+#[rustc_on_unimplemented =
+  "`main` can only return types 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.