Sign in
fuchsia
/
third_party
/
rust
/
d440e136e753210882d930c6f4884a43984f6ba0
/
.
/
src
/
test
/
ui
/
lexical-scopes.rs
blob: 46cfdf1efa8f059674f1fd013bc5310eac94b725 [
file
] [
log
] [
blame
]
struct
T
{
i
:
i32
}
fn
f
<
T
>()
{
let
t
=
T
{
i
:
0
};
//~ ERROR expected struct, variant or union type, found type parameter `T`
}
mod
Foo
{
pub
fn
f
()
{}
}
fn
g
<
Foo
>()
{
Foo
::
f
();
//~ ERROR no function or associated item named `f`
}
fn
main
()
{}