Skip to content

Commit 48a079f

Browse files
authored
Merge pull request #764 from ehuss/fix-new-lint-name
Update for change in const lint name.
2 parents 1f7cb6a + 8c0d76b commit 48a079f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/array-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ in a _panicked state_ if it fails.
6262

6363
```rust,should_panic
6464
// lint is deny by default.
65-
#![warn(const_err)]
65+
#![warn(unconditional_panic)]
6666
6767
([1, 2, 3, 4])[2]; // Evaluates to 3
6868

0 commit comments

Comments
 (0)