rust/tests/ui/issues/issue-21622.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
263 B
Rust
Raw Normal View History

// 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() {}