We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f7c75b commit c0464eeCopy full SHA for c0464ee
src/test/run-pass/myriad-closures.rs renamed to src/test/run-pass-fulldeps/myriad-closures.rs
@@ -13,6 +13,9 @@
13
// toolchain.
14
// See https://github.com/rust-lang/rust/issues/34793 for more information.
15
16
+// Make sure we don't optimize anything away:
17
+// compile-flags: -C no-prepopulate-passes
18
+
19
// Expand something exponentially
20
macro_rules! go_bacterial {
21
($mac:ident) => ($mac!());
@@ -23,10 +26,7 @@ macro_rules! go_bacterial {
23
26
}
24
27
25
28
macro_rules! mk_closure {
- () => ({
- let c = |a: u32| a + 4;
- let _ = c(2);
29
- })
+ () => ((move || {})())
30
31
32
macro_rules! mk_fn {
0 commit comments