mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 12:39:53 +00:00
17 lines
303 B
Rust
17 lines
303 B
Rust
mod child {
|
|
trait Main {
|
|
fn main() -> impl std::process::Termination;
|
|
}
|
|
|
|
struct Something;
|
|
|
|
impl Main for () {
|
|
fn main() -> Something {
|
|
//~^ ERROR the trait bound `Something: Termination` is not satisfied
|
|
Something
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|