Skip to content

Commit 0123cbd

Browse files
Fix broken doc-test
1 parent eff83e5 commit 0123cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_passes/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ At the moment, `if` and `match`, as well as the looping constructs `for`,
633633
`while`, and `loop`, are forbidden inside a `const`, `static`, or `const fn`.
634634
635635
```compile_fail,E0744
636-
const _: {
636+
const _: i32 = {
637637
let mut x = 0;
638638
loop {
639639
x += 1;

0 commit comments

Comments
 (0)