1 error: use of `.unwrap_or_else(..)` to construct default value
2 --> $DIR/unwrap_or_else_default.rs:48:5
4 LL | with_new.unwrap_or_else(Vec::new);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_new.unwrap_or_default()`
7 = note: `-D clippy::unwrap-or-else-default` implied by `-D warnings`
9 error: use of `.unwrap_or_else(..)` to construct default value
10 --> $DIR/unwrap_or_else_default.rs:62:5
12 LL | with_real_default.unwrap_or_else(<HasDefaultAndDuplicate as Default>::default);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_real_default.unwrap_or_default()`
15 error: use of `.unwrap_or_else(..)` to construct default value
16 --> $DIR/unwrap_or_else_default.rs:65:5
18 LL | with_default_trait.unwrap_or_else(Default::default);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_trait.unwrap_or_default()`
21 error: use of `.unwrap_or_else(..)` to construct default value
22 --> $DIR/unwrap_or_else_default.rs:68:5
24 LL | with_default_type.unwrap_or_else(u64::default);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_type.unwrap_or_default()`
27 error: use of `.unwrap_or_else(..)` to construct default value
28 --> $DIR/unwrap_or_else_default.rs:71:5
30 LL | with_default_type.unwrap_or_else(Vec::new);
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_type.unwrap_or_default()`
33 error: aborting due to 5 previous errors