]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.stderr
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / rfc-1937-termination-trait / termination-trait-not-satisfied.stderr
1 error[E0277]: `main` has invalid return type `ReturnType`
2   --> $DIR/termination-trait-not-satisfied.rs:3:14
3    |
4 LL | fn main() -> ReturnType {
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`.