1 // This issue reproduces an ICE on compile (E.g. fails on 2018-12-19 nightly).
2 // "cannot relate bound region: ReLateBound(DebruijnIndex(1), BrAnon(1)) <= '_#1r"
5 #![feature(generators,generator_trait)]
6 use std::ops::Generator;
8 fn with<F>(f: F) -> impl Generator<Yield=(), Return=()>
22 || { //~ WARN unused generator that must be used
23 let _to_pin = with(move || println!("{:p}", data));