Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
run-pass
/
mutable-huh-variance-vec2.rs
blob: 06e43df668e6848528dde1c2482a8d36da480434 [
file
]
// error-pattern: mismatched types
fn
main
()
{
let
v
=
~[~[
0
]];
// This is ok because the outer vec is covariant with respect
// to the inner vec. If the outer vec was mut then we
// couldn't do this.
fn
f
(&&
v
:
~[
const
~[
const
int
]])
{
}
f
(
v
);
}