From fd318300cf713f0e74f3a834f6c07970b85f17e4 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 16 Jan 2014 18:47:22 -0500 Subject: Fix test to account for new temporary lifetime rules, which cause the channel to be dropped prematurely. --- src/libstd/comm/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs index bf9e28f3e97..985a387ee2b 100644 --- a/src/libstd/comm/mod.rs +++ b/src/libstd/comm/mod.rs @@ -1202,7 +1202,7 @@ mod test { }) test!(fn oneshot_single_thread_peek_open() { - let (port, _) = Chan::::new(); + let (port, _chan) = Chan::::new(); assert_eq!(port.try_recv(), Empty); }) -- cgit 1.4.1-3-g733a5