Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-31267-additional.rs
blob: ef7a5002bf162295fb5fd414a99d6edfe3a9fd6c [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#[
derive
(
Clone
,
Copy
,
Debug
)]
struct
Bar
;
const
BAZ
:
Bar
=
Bar
;
#[
derive
(
Debug
)]
struct
Foo
(#[
allow
(
dead_code
)]
[
Bar
;
1
]);
struct
Biz
;
impl
Biz
{
const
BAZ
:
Foo
=
Foo
([
BAZ
;
1
]);
}
fn
main
()
{
let
foo
=
Biz
::
BAZ
;
println
!(
"{:?}"
,
foo
);
}