]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12677.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-12677.rs
1 // run-pass
2
3 fn main() {
4     let s = "Hello";
5     let first = s.bytes();
6     let second = first.clone();
7
8     assert_eq!(first.collect::<Vec<u8>>(), second.collect::<Vec<u8>>())
9 }