]> git.lizzy.rs Git - rust.git/blob - tests/ui/cast_abs_to_unsigned.stderr
Auto merge of #95655 - kckeiks:create-hir-crate-items-query, r=cjgillot
[rust.git] / tests / ui / cast_abs_to_unsigned.stderr
1 error: casting the result of `i32::abs()` to u32
2   --> $DIR/cast_abs_to_unsigned.rs:6:18
3    |
4 LL |     let y: u32 = x.abs() as u32;
5    |                  ^^^^^^^^^^^^^^ help: replace with: `x.unsigned_abs()`
6    |
7    = note: `-D clippy::cast-abs-to-unsigned` implied by `-D warnings`
8
9 error: aborting due to previous error
10