blob: 65059cf38cd3cf1289b7fb91c46959a813c91546 [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/21622>.
//@ check-pass
#![allow(dead_code)]
#![allow(unused_variables)]
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() {}