]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-78660-cap-lints-future-compat.rs
Add test for suggestion of array_into_iter in for loop.
[rust.git] / src / test / ui / lint / issue-78660-cap-lints-future-compat.rs
1 // compile-flags: -D warnings --cap-lints allow
2 // check-pass
3
4 // Regression test for issue #78660
5 // Tests that we don't ICE when a future-incompat-report lint has
6 // has a command-line source, but is capped to allow
7
8 fn main() {
9     ["hi"].into_iter();
10 }