Skip to content

Commit fd31830

Browse files
committed
Fix test to account for new temporary lifetime rules, which cause the channel to be dropped prematurely.
1 parent 4b52d89 commit fd31830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/comm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ mod test {
12021202
})
12031203

12041204
test!(fn oneshot_single_thread_peek_open() {
1205-
let (port, _) = Chan::<int>::new();
1205+
let (port, _chan) = Chan::<int>::new();
12061206
assert_eq!(port.try_recv(), Empty);
12071207
})
12081208

0 commit comments

Comments
 (0)