//@ revisions: rpass1 rpass2 // Regression test for issue #92987 // Tests that we properly manage `DepNode`s during trait evaluation // involing an auto-trait cycle. #[cfg(rpass1)] struct CycleOne(Box); #[cfg(rpass2)] enum CycleOne { Variant(Box) } struct CycleTwo(CycleOne); fn assert_send() {} fn bar() { assert_send::(); assert_send::(); } fn main() {}