Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-3521.rs
blob: 9e72dd29a408ecd490044c2d20d1b6e5f01e71a9 [
file
] [
log
] [
blame
]
fn
main
()
{
let
foo
=
100
;
#[
derive
(
Debug
)]
enum
Stuff
{
Bar
=
foo
//~^ ERROR attempt to use a non-constant value in a constant
}
println
!(
"{:?}"
,
Stuff
::
Bar
);
}