1 error: use of `.unwrap_or_else(..)` to construct default value
2 --> $DIR/unwrap_or_else_default.rs:62:5
4 LL | with_real_default.unwrap_or_else(<HasDefaultAndDuplicate as Default>::default);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_real_default.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:65:5
12 LL | with_default_trait.unwrap_or_else(Default::default);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_trait.unwrap_or_default()`
15 error: use of `.unwrap_or_else(..)` to construct default value
16 --> $DIR/unwrap_or_else_default.rs:68:5
18 LL | with_default_type.unwrap_or_else(u64::default);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_type.unwrap_or_default()`
21 error: aborting due to 3 previous errors