Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
use-keyword-2.rs
blob: 4f3d1ee500d80396b4b7df78ac00dc1b6366b766 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
unused_variables
)]
pub
struct
A
;
mod
test
{
pub
use
super
::
A
;
pub
use
self
::
A
as
B
;
}
impl
A
{
fn
f
()
{}
fn
g
()
{
Self
::
f
()
}
}
fn
main
()
{
let
a
:
A
=
test
::
A
;
let
b
:
A
=
test
::
B
;
let
c
:
()
=
A
::
g
();
}