Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
7c547894c76efe9303caa3108754674c39bd901d
/
.
/
tests
/
ui
/
typeck
/
span-bug-issue-121410.rs
blob: 324b398d74f773060de21bc5208fafbd3568d65a [
file
] [
log
] [
blame
]
fn
test_missing_unsafe_warning_on_repr_packed
()
{
struct
Foo
{
x
:
String
,
}
let
foo
=
Foo
{
x
:
String
::
new
()
};
let
c
=
||
{
let
(
_
,
t2
)
=
foo
.
x
;
//~ ERROR mismatched types
};
c
();
}
fn
main
()
{}