rust/tests/ui/rfcs/rfc-1937-termination-trait/issue-103052-2.stderr
2023-10-13 21:01:36 +00:00

16 lines
605 B
Plaintext

error[E0277]: the trait bound `Something: Termination` is not satisfied
--> $DIR/issue-103052-2.rs:11:22
|
LL | fn main() -> Something {
| ^^^^^^^^^ the trait `Termination` is not implemented for `Something`
|
note: required by a bound in `Main::{opaque#0}`
--> $DIR/issue-103052-2.rs:5:27
|
LL | fn main() -> impl std::process::Termination;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Main::{opaque#0}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.