blob: 921136775b7fd950cb5d0534cbff8c7522efdb3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// run-pass
// revisions: mir codegen
//[mir] compile-flags: -Zmir-opt-level=3
//[codegen] compile-flags: -Zmir-opt-level=0
// A regression test for #107205
const X: for<'b> fn(&'b ()) = |&()| ();
fn main() {
let dyn_debug = Box::new(X) as Box<fn(&'static ())> as Box<dyn Send>;
drop(dyn_debug)
}
|