1
Fork 0

Rollup merge of #37938 - michaelwoerister:move-myriad-closures, r=eddyb

Move the myriad-closures.rs test case to run-pass-full test suite.

r? @eddyb
This commit is contained in:
Guillaume Gomez 2016-11-23 12:18:10 +01:00 committed by GitHub
commit 90a2671a3c

View file

@ -13,6 +13,9 @@
// toolchain.
// See https://github.com/rust-lang/rust/issues/34793 for more information.
// Make sure we don't optimize anything away:
// compile-flags: -C no-prepopulate-passes
// Expand something exponentially
macro_rules! go_bacterial {
($mac:ident) => ($mac!());
@ -23,10 +26,7 @@ macro_rules! go_bacterial {
}
macro_rules! mk_closure {
() => ({
let c = |a: u32| a + 4;
let _ = c(2);
})
() => ((move || {})())
}
macro_rules! mk_fn {