We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c886629 commit 4f9e7baCopy full SHA for 4f9e7ba
src/test/run-pass/issue-3521.rs renamed to src/test/compile-fail/issue-3521.rs
@@ -1,9 +1,8 @@
1
-// xfail-test
2
fn main() {
3
let foo = 100;
4
5
enum Stuff {
6
- Bar = foo
+ Bar = foo //~ ERROR attempt to use a non-constant value in a constant
7
}
8
9
log(error, Bar);
0 commit comments