]> git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / rfc-1937-termination-trait / termination-trait-main-wrong-type.stderr
1 error[E0277]: `main` has invalid return type `char`
2 --> $DIR/termination-trait-main-wrong-type.rs:1:14
3 |
4 LL | fn main() -> char {
5 | ^^^^ `main` can only return types that implement `Termination`
6 |
7 = help: consider using `()`, or a `Result`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0277`.