summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-12677.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-12677.rs')
-rw-r--r--src/test/ui/issues/issue-12677.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-12677.rs b/src/test/ui/issues/issue-12677.rs
new file mode 100644
index 000000000..d0e4c17d4
--- /dev/null
+++ b/src/test/ui/issues/issue-12677.rs
@@ -0,0 +1,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>>())
+}