rust/compiler/rustc_trait_selection
Yuki Okushi 472a8742a6
Rollup merge of #103142 - fmease:fix-103052, r=oli-obk
Make diagnostic for unsatisfied `Termination` bounds more precise

Don't blindly emit a diagnostic claiming that “*`main` has an invalid return type*” if we encounter a type that should but doesn't implement `std::process::Termination` and isn't actually the return type of the program entry `main`.

Fixes #103052.

``@rustbot`` label A-diagnostics T-compiler T-libs
r? diagnostics
2022-10-18 21:21:30 +09:00
..
src Rollup merge of #103142 - fmease:fix-103052, r=oli-obk 2022-10-18 21:21:30 +09:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00