We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 347165f commit faff382Copy full SHA for faff382
src/libstd/termination.rs
@@ -19,7 +19,7 @@ use libc;
19
///
20
/// The default implementations are returning `libc::EXIT_SUCCESS` to indicate
21
/// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
22
-#[cfg_attr(not(stage0), lang = "termination")]
+#[cfg_attr(not(any(stage0, test)), lang = "termination")]
23
#[unstable(feature = "termination_trait", issue = "43301")]
24
#[rustc_on_unimplemented =
25
"`main` can only return types that implement {Termination}, not `{Self}`"]
0 commit comments