]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21622.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-21622.rs
1 // compile-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() {}