2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2023-02-21 02:01:26 +00:00
|
|
|
|
|
|
|
// This didn't work in the previous default RPITIT method hack attempt
|
|
|
|
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn bar(x: bool) -> impl Sized {
|
|
|
|
if x {
|
|
|
|
let _: u32 = Self::bar(!x);
|
|
|
|
}
|
|
|
|
Default::default()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|