rust/src/test/ui/issues/issue-3521.rs
2018-12-25 21:08:33 -07:00

12 lines
200 B
Rust

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);
}