Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
issues
/
issue-14845.rs
blob: d9b20e1f688ffd5ca4a228b0decea73947bc00ec [
file
] [
log
] [
blame
]
struct
X
{
a
:
[
u8
;
1
]
}
fn
main
()
{
let
x
=
X
{
a
:
[
0
]
};
let
_f
=
&
x
.
a
as
*
mut
u8
;
//~ ERROR casting
let
local
:
[
u8
;
1
]
=
[
0
];
let
_v
=
&
local
as
*
mut
u8
;
//~ ERROR casting
}