Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
issues
/
issue-3521.fixed
blob: f76106dfff1871a6b784208db9e5561297fd6956 [
file
] [
log
] [
blame
]
// run-rustfix
fn main
()
{
#[allow(non_upper_case_globals)]
const
foo
:
isize
=
100
;
#[derive(Debug)]
enum
Stuff
{
Bar
=
foo
//~^ ERROR attempt to use a non-constant value in a constant
}
println
!(
"{:?}"
,
Stuff
::
Bar
);
}