mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 02:23:20 +00:00
added IterBytes for 4-tuples
This commit is contained in:
parent
58e7598c2e
commit
f68aa459ea
@ -375,3 +375,13 @@ impl<A:IterBytes> ToBytes for A {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
// just test to see if it compiles:
|
||||
#[test] fn iterbytes_compiles () {
|
||||
takes_iterbytes((3,4,5,false));
|
||||
}
|
||||
fn takes_iterbytes<T : IterBytes>(x : T) {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user