Skip to content

Commit 175a642

Browse files
author
christopherdumas
committed
Fixed test
1 parent 0276068 commit 175a642

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/compile-fail/non-constant-in-const-path.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
fn main() {
1212
let x = 0;
1313
match 1 {
14-
0 ... x => {} //~ ERROR non-constant path in constant expr
14+
0 ... x => {}
15+
//~^ ERROR non-constant path in constant expr
16+
//~| ERROR paths in constants may only refer to constants or functions
1517
};
1618
}

0 commit comments

Comments
 (0)