]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/issue-72911.rs
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / impl-trait / issue-72911.rs
1 // Regression test for #72911.
2
3 pub struct Lint {}
4
5 impl Lint {}
6
7 pub fn gather_all() -> impl Iterator<Item = Lint> {
8     lint_files().flat_map(|f| gather_from_file(&f))
9 }
10
11 fn gather_from_file(dir_entry: &foo::MissingItem) -> impl Iterator<Item = Lint> {
12     //~^ ERROR: failed to resolve
13     unimplemented!()
14 }
15
16 fn lint_files() -> impl Iterator<Item = foo::MissingItem> {
17     //~^ ERROR: failed to resolve
18     unimplemented!()
19 }
20
21 fn main() {}