termination_trait: Add () example to error message

This commit is contained in:
Tyler Mandry 2018-03-20 23:01:42 -05:00
parent 1937661961
commit 94bdeb64f9
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ error[E0277]: the trait bound `char: std::process::Termination` is not satisfied
--> $DIR/termination-trait-main-wrong-type.rs:11:14
|
LL | fn main() -> char { //~ ERROR
| ^^^^ `main` can only return types that implement std::process::Termination, not `char`
| ^^^^ `main` can only return types like `()` that implement std::process::Termination, not `char`
|
= help: the trait `std::process::Termination` is not implemented for `char`