summary refs log tree commit diff
path: root/tests/ui/lint/ice-array-into-iter-lint-issue-121532.rs
blob: 92cab01fe48c82940cd6dbf2c13bcaa36bb92bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Regression test for #121532
// Checks the we don't ICE in ArrayIntoIter
// lint when typeck has failed

 // Typeck fails for the arg type as
 // `Self` makes no sense here
fn func(a: Self::ItemsIterator) { //~ ERROR failed to resolve: `Self` is only available in impls, traits, and type definitions
    a.into_iter();
}

fn main() {}