2022-10-17 05:04:16 -05:00
|
|
|
#![feature(return_position_impl_trait_in_trait)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
mod child {
|
|
|
|
trait Main {
|
|
|
|
fn main() -> impl std::process::Termination;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Something;
|
|
|
|
|
|
|
|
impl Main for () {
|
2023-03-21 14:52:15 -05:00
|
|
|
fn main() -> Something {
|
|
|
|
//~^ ERROR the trait bound `Something: Termination` is not satisfied
|
2022-10-17 05:04:16 -05:00
|
|
|
Something
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|