Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
issues
/
issue-31267-additional.rs
blob: c6e93533e7c518ab5495313cae9f276fb3bf9d6d [
file
] [
log
] [
blame
]
// 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
);
}