2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
|
|
|
//@ revisions: current next
|
2024-03-10 20:18:41 -05:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2024-02-16 14:02:50 -06:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-09-01 23:33:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let vec: Vec<Box<dyn Trait>> = Vec::new();
|
|
|
|
|
|
|
|
for i in vec {
|
|
|
|
i.fn_2();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
trait OtherTrait {}
|
|
|
|
|
|
|
|
trait Trait {
|
|
|
|
fn fn_1(&self) -> impl OtherTrait
|
|
|
|
where
|
|
|
|
Self: Sized;
|
|
|
|
|
|
|
|
fn fn_2(&self) -> bool;
|
|
|
|
}
|