]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/types.stderr
iterate List by value
[rust.git] / tests / ui / types.stderr
index e2f75162867c67950b0515610c82badd05e87834..59c3e05a1aa3ce9bf94ffc9cc87f4088275868b9 100644 (file)
@@ -1,10 +1,10 @@
-error: casting i32 to i64 may become silently lossy if types change
- --> $DIR/types.rs:9:23
-  |
-9 |     let c_i64 : i64 = c as i64;
-                        ^^^^^^^^ help: try: `i64::from(c)`
-  |
-  = note: `-D clippy::cast-lossless` implied by `-D warnings`
+error: casting `i32` to `i64` may become silently lossy if you later change the type
+  --> $DIR/types.rs:14:22
+   |
+LL |     let c_i64: i64 = c as i64;
+   |                      ^^^^^^^^ help: try: `i64::from(c)`
+   |
+   = note: `-D clippy::cast-lossless` implied by `-D warnings`
 
 error: aborting due to previous error