2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2015-06-17 19:46:33 -07:00
|
|
|
|
|
|
|
struct Index;
|
|
|
|
|
|
|
|
impl Index {
|
|
|
|
fn new() -> Self { Index }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn user() {
|
|
|
|
let new = Index::new;
|
|
|
|
|
|
|
|
fn inner() {
|
|
|
|
let index = Index::new();
|
|
|
|
}
|
|
|
|
|
|
|
|
let index2 = new();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|