summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/types.stderr
blob: f7473e1c5c52d1cb312e50d6039887b340cd7ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
error: casting `i32` to `i64` may become silently lossy if you later change the type
  --> $DIR/types.rs:12:22
   |
LL |     let c_i64: i64 = c as i64;
   |                      ^^^^^^^^ help: try: `i64::from(c)`
   |
   = note: `-D clippy::cast-lossless` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::cast_lossless)]`

error: aborting due to 1 previous error