Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
compile-fail
/
nested-ty-params.rs
blob: 54d4d8e4817af8bf7efc68bed90aa5ef64337705 [
file
] [
log
] [
blame
]
// error-pattern:attempt to use a type argument out of scope
fn
hd
<
U
>(
v
:
~[
U
])
->
U
{
fn
hd1
(
w
:
[
U
])
->
U
{
return
w
[
0
];
}
return
hd1
(
v
);
}