Sign in
fuchsia
/
third_party
/
rust
/
4ecd94e1215882efde5f003c0042bd72a5f8acb2
/
.
/
src
/
test
/
ui
/
issues
/
issue-14541.rs
blob: 705c3d326c65ccfac3b4411c7d06456feccf4bcf [
file
] [
log
] [
blame
]
struct
Vec2
{
y
:
f32
}
struct
Vec3
{
y
:
f32
,
z
:
f32
}
fn
make
(
v
:
Vec2
)
{
let
Vec3
{
y
:
_
,
z
:
_
}
=
v
;
//~^ ERROR mismatched types
//~| expected type `Vec2`
//~| found type `Vec3`
//~| expected struct `Vec2`, found struct `Vec3`
}
fn
main
()
{
}