Skip to content

Commit 79a9024

Browse files
committed
bless
1 parent a5acb92 commit 79a9024

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/ui-toml/unwrap_used/unwrap_used.stderr

+8-2
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,16 @@ LL | let _ = some_vec.get_mut(0..1).unwrap().to_vec();
188188
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
189189

190190
error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise
191-
--> $DIR/unwrap_used.rs:84:17
191+
--> $DIR/unwrap_used.rs:72:13
192+
|
193+
LL | let _ = boxed_slice.get(1).unwrap();
194+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&boxed_slice[1]`
195+
196+
error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise
197+
--> $DIR/unwrap_used.rs:90:17
192198
|
193199
LL | let _ = Box::new([0]).get(1).unwrap();
194200
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&Box::new([0])[1]`
195201

196-
error: aborting due to 27 previous errors
202+
error: aborting due to 28 previous errors
197203

0 commit comments

Comments
 (0)