mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
12 lines
253 B
Rust
12 lines
253 B
Rust
//! 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>>())
|
|
}
|