]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/issue-3521.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / consts / issue-3521.rs
CommitLineData
5869c6ff 1// run-rustfix
223e47cc 2fn main() {
5869c6ff
XL
3 #[allow(non_upper_case_globals)]
4 let foo: isize = 100;
223e47cc 5
85aaf69f 6 #[derive(Debug)]
223e47cc 7 enum Stuff {
c34b1796
AL
8 Bar = foo
9 //~^ ERROR attempt to use a non-constant value in a constant
223e47cc
LB
10 }
11
8bb4bdeb 12 println!("{:?}", Stuff::Bar);
223e47cc 13}