mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
22 lines
264 B
Rust
22 lines
264 B
Rust
//@ 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() {}
|