termination_trait: Put examples in error help, not label

This commit is contained in:
Tyler Mandry 2018-03-21 13:32:46 -05:00
parent 2cdc7af413
commit b6934c91b2
4 changed files with 18 additions and 13 deletions

View file

@ -2,9 +2,9 @@ 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 like `()` that implement std::process::Termination, not `char`
| ^^^^ `main` can only return types that implement std::process::Termination, not `char`
|
= help: the trait `std::process::Termination` is not implemented for `char`
= help: consider using `()`, or a `Result`
error: aborting due to previous error