diff options
Diffstat (limited to 'tests/ui/generator/issue-53548-1.rs')
-rw-r--r-- | tests/ui/generator/issue-53548-1.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/ui/generator/issue-53548-1.rs b/tests/ui/generator/issue-53548-1.rs deleted file mode 100644 index 173ae3c6f..000000000 --- a/tests/ui/generator/issue-53548-1.rs +++ /dev/null @@ -1,20 +0,0 @@ -// A variant of #53548 that does not actually require generators, -// 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<C> { - inner: Rc<RefCell<Option<C>>>, -} - -fn main() { - let store = Store::<Box<for<'a> fn(&(dyn Trait + 'a))>> { - inner: Default::default(), - }; -} |