blob: 9c5f5992adb031ab027e77b44fe94e4343822df6 [file] [log] [blame] [edit]
// ICEs if checking if there is a significant destructor causes a query cycle
//@ check-pass
#![warn(rust_2021_incompatible_closure_captures)]
pub struct Foo(Bar);
pub struct Bar(Baz);
pub struct Baz(Vec<Foo>);
impl Foo {
pub fn baz(self, v: Baz) -> Baz {
(|| v)()
}
}
fn main() {}