2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be 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() {}
|