Skip to content

Commit 88871bf

Browse files
committed
Fix tests
1 parent 26cc551 commit 88871bf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/ui/unwrap_or_else_default.stderr

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,12 @@ error: use of `.unwrap_or_else(..)` to construct default value
2424
LL | with_default_type.unwrap_or_else(u64::default);
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_type.unwrap_or_default()`
2626

27-
error: aborting due to 3 previous errors
27+
error: use of `.unwrap_or_else(..)` to construct default value
28+
--> $DIR/unwrap_or_else_default.rs:71:5
29+
|
30+
LL | with_default_type.unwrap_or_else(Vec::new);
31+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_type.unwrap_or_default()`
32+
33+
error: aborting due to 5 previous errors
34+
2835

0 commit comments

Comments
 (0)