parent
c886629d4f
commit
4f9e7babeb
1 changed files with 1 additions and 2 deletions
|
|
@ -1,9 +1,8 @@
|
|||
// xfail-test
|
||||
fn main() {
|
||||
let foo = 100;
|
||||
|
||||
enum Stuff {
|
||||
Bar = foo
|
||||
Bar = foo //~ ERROR attempt to use a non-constant value in a constant
|
||||
}
|
||||
|
||||
log(error, Bar);
|
||||
Loading…
Add table
Add a link
Reference in a new issue