// A variant of #53548 that does not actually require coroutines, // but which encountered the same ICE/error. See `issue-53548.rs` // for details. // //@ check-pass use std::cell::RefCell; use std::rc::Rc; trait Trait: 'static {} struct Store { inner: Rc>>, } fn main() { let store = Store:: fn(&(dyn Trait + 'a))>> { inner: Default::default(), }; }