Skip to content

Commit 29ec15a

Browse files
committed
update incremental test -- returning that reference was illegal
Also, changing the pattern in the closure in this way doesn't affect the closure *creator* in particular.
1 parent c56b122 commit 29ec15a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/incremental/hashes/closure_expressions.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ pub fn add_parameter() {
6060
// Change parameter pattern ----------------------------------------------------
6161
#[cfg(cfail1)]
6262
pub fn change_parameter_pattern() {
63-
let _ = |x: &u32| x;
63+
let _ = |x: &u32| { println!("{}", x); };
6464
}
6565

6666
#[cfg(not(cfail1))]
67-
#[rustc_clean(cfg="cfail2", except="HirBody, MirValidated, TypeckTables")]
67+
#[rustc_clean(cfg="cfail2", except="HirBody, TypeckTables")]
6868
#[rustc_clean(cfg="cfail3")]
6969
pub fn change_parameter_pattern() {
70-
let _ = |&x: &u32| x;
70+
let _ = |&x: &u32| { println!("{}", x); };
7171
}
7272

7373

0 commit comments

Comments
 (0)