2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2015-06-17 21:46:33 -05: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() {}
|