Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-21622.rs
blob: 8dbc2c21ba951149ad4b495c354986b522e42c78 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{}