diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-01-16 18:47:22 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-01-16 18:47:22 -0500 |
| commit | fd318300cf713f0e74f3a834f6c07970b85f17e4 (patch) | |
| tree | 80e4bb5dd2948fb15bc1c6626f937b3d5152f9ae /src/libstd | |
| parent | 4b52d899fffd8e6ef01a5a05c1d513278a7823bd (diff) | |
| download | rust-fd318300cf713f0e74f3a834f6c07970b85f17e4.tar.gz rust-fd318300cf713f0e74f3a834f6c07970b85f17e4.zip | |
Fix test to account for new temporary lifetime rules, which cause the channel to be dropped prematurely.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/comm/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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::<int>::new(); + let (port, _chan) = Chan::<int>::new(); assert_eq!(port.try_recv(), Empty); }) |
