]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unwrap_or_else_default.stderr
Add desugaring mark to while loop
[rust.git] / src / tools / clippy / tests / ui / unwrap_or_else_default.stderr
1 error: use of `.unwrap_or_else(..)` to construct default value
2   --> $DIR/unwrap_or_else_default.rs:62:5
3    |
4 LL |     with_real_default.unwrap_or_else(<HasDefaultAndDuplicate as Default>::default);
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_real_default.unwrap_or_default()`
6    |
7    = note: `-D clippy::unwrap-or-else-default` implied by `-D warnings`
8
9 error: use of `.unwrap_or_else(..)` to construct default value
10   --> $DIR/unwrap_or_else_default.rs:65:5
11    |
12 LL |     with_default_trait.unwrap_or_else(Default::default);
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_trait.unwrap_or_default()`
14
15 error: use of `.unwrap_or_else(..)` to construct default value
16   --> $DIR/unwrap_or_else_default.rs:68:5
17    |
18 LL |     with_default_type.unwrap_or_else(u64::default);
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `with_default_type.unwrap_or_default()`
20
21 error: aborting due to 3 previous errors
22