blob: cfbb85a3ecba5531904e655f7fb85d7a0d3aafc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//! Regression test for https://github.com/rust-lang/rust/issues/12677
//@ run-pass
fn main() {
let s = "Hello";
let first = s.bytes();
let second = first.clone();
assert_eq!(first.collect::<Vec<u8>>(), second.collect::<Vec<u8>>())
}
|