termination_trait: Put examples in error help, not label
This commit is contained in:
parent
2cdc7af413
commit
b6934c91b2
4 changed files with 18 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue