]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21622.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-21622.rs
1 // check-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4
5 struct Index;
6
7 impl Index {
8     fn new() -> Self { Index }
9 }
10
11 fn user() {
12     let new = Index::new;
13
14     fn inner() {
15         let index = Index::new();
16     }
17
18     let index2 = new();
19 }
20
21 fn main() {}