mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
12 lines
337 B
Rust
12 lines
337 B
Rust
// 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() {}
|