Skip to content

Commit 148c9a1

Browse files
committed
Fix error message for static references or mutable references
1 parent 6e64338 commit 148c9a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/checked_unwrap/simple_conditionals.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ LL | if result.is_ok() {
236236
LL | result.as_mut().unwrap();
237237
| ^^^^^^^^^^^^^^^^^^^^^^^^
238238

239-
error: creating a shared reference to mutable static is discouraged
239+
error: creating a shared reference to mutable static
240240
--> tests/ui/checked_unwrap/simple_conditionals.rs:183:12
241241
|
242242
LL | if X.is_some() {

0 commit comments

Comments
 (0)