mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Add some more test cases
This commit is contained in:
parent
6670acd287
commit
f40279ff7d
1 changed files with 0 additions and 6 deletions
|
@ -480,12 +480,6 @@ error: casting `i32` to `u32` may lose the sign of the value
|
||||||
LL | (x * x) as u32;
|
LL | (x * x) as u32;
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: casting `i32` to `u32` may lose the sign of the value
|
|
||||||
--> tests/ui/cast.rs:373:9
|
|
||||||
|
|
|
||||||
LL | x.pow(2) as u32;
|
|
||||||
| ^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
error: casting `i32` to `u32` may lose the sign of the value
|
error: casting `i32` to `u32` may lose the sign of the value
|
||||||
--> tests/ui/cast.rs:377:32
|
--> tests/ui/cast.rs:377:32
|
||||||
|
|
|
|
||||||
|
|
Loading…
Reference in a new issue