Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
dyn-star
/
check-size-at-cast.rs
blob: 17bc4f303bffabd1ad541756d76b45e791fa61c4 [
file
] [
log
] [
blame
]
#![
feature
(
dyn_star
)]
#![
allow
(
incomplete_features
)]
use
std
::
fmt
::
Debug
;
fn
main
()
{
let
i
=
[
1
,
2
,
3
,
4
]
as
dyn
*
Debug
;
//~^ ERROR `[i32; 4]` needs to have the same alignment and size as a pointer
dbg
!(
i
);
}