]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23958.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-23958.rs
1 // run-pass
2 trait Collection where for<'a> &'a Self: IntoIterator {
3     fn my_iter(&self) -> <&Self as IntoIterator>::IntoIter {
4         self.into_iter()
5     }
6 }
7
8 impl<T> Collection for [T] { }
9
10 fn main() {
11     let v = [0usize];
12     let _ = v.my_iter();
13 }