termination_trait: Add () example to error message
This commit is contained in:
parent
1937661961
commit
94bdeb64f9
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue