From 8c0d76bc42a4d773b5500565a5020f8c01031888 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 21 Feb 2020 09:30:42 -0800 Subject: [PATCH] Update for change in const lint name. --- src/expressions/array-expr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions/array-expr.md b/src/expressions/array-expr.md index f31fbb874..4d4f567e1 100644 --- a/src/expressions/array-expr.md +++ b/src/expressions/array-expr.md @@ -62,7 +62,7 @@ in a _panicked state_ if it fails. ```rust,should_panic // lint is deny by default. -#![warn(const_err)] +#![warn(unconditional_panic)] ([1, 2, 3, 4])[2]; // Evaluates to 3