diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-01-28 10:46:43 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-01-29 10:42:58 -0800 |
| commit | 6ce74460e6a5c8045a7b43b86a656f28354f4b0c (patch) | |
| tree | a09e6a6b8ba8566e6dc9f223d6cbbfbbdcde19e2 /src/libstd/comm.rs | |
| parent | eb4d39e1fef918242a5dba2a09d7b9faa437b911 (diff) | |
| download | rust-6ce74460e6a5c8045a7b43b86a656f28354f4b0c.tar.gz rust-6ce74460e6a5c8045a7b43b86a656f28354f4b0c.zip | |
librustc: Disallow trait bounds in types, enumerations, and structure definitions. r=tjc
Diffstat (limited to 'src/libstd/comm.rs')
| -rw-r--r-- | src/libstd/comm.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs index 3118a0c1ba5..16e8b63da81 100644 --- a/src/libstd/comm.rs +++ b/src/libstd/comm.rs @@ -23,7 +23,14 @@ use core::pipes; use core::prelude::*; /// An extension of `pipes::stream` that allows both sending and receiving. -pub struct DuplexStream<T: Owned, U: Owned> { +#[cfg(stage0)] +pub struct DuplexStream<T:Owned, U:Owned> { + priv chan: Chan<T>, + priv port: Port<U>, +} +#[cfg(stage1)] +#[cfg(stage2)] +pub struct DuplexStream<T, U> { priv chan: Chan<T>, priv port: Port<U>, } |
