We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cc551 commit 88871bfCopy full SHA for 88871bf
tests/ui/unwrap_or_else_default.stderr
@@ -24,5 +24,12 @@ error: use of `.unwrap_or_else(..)` to construct default value
24
LL | with_default_type.unwrap_or_else(u64::default);
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_type.unwrap_or_default()`
26
27
-error: aborting due to 3 previous errors
+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
35
0 commit comments