summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-12677.rs
blob: d0e4c17d4facf2faef4abd845b05beed1225b889 (plain)
1
2
3
4
5
6
7
8
9
// 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>>())
}