]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/trivial-casts-featuring-type-ascription.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / trivial-casts-featuring-type-ascription.stderr
1 error: trivial numeric cast: `i32` as `i32`
2   --> $DIR/trivial-casts-featuring-type-ascription.rs:5:22
3    |
4 LL |     let lugubrious = 12i32 as i32;
5    |                      ^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/trivial-casts-featuring-type-ascription.rs:1:24
9    |
10 LL | #![deny(trivial_casts, trivial_numeric_casts)]
11    |                        ^^^^^^^^^^^^^^^^^^^^^
12    = help: cast can be replaced by coercion; this might require type ascription or a temporary variable
13
14 error: trivial cast: `&u32` as `*const u32`
15   --> $DIR/trivial-casts-featuring-type-ascription.rs:8:13
16    |
17 LL |     let _ = haunted as *const u32;
18    |             ^^^^^^^^^^^^^^^^^^^^^
19    |
20 note: the lint level is defined here
21   --> $DIR/trivial-casts-featuring-type-ascription.rs:1:9
22    |
23 LL | #![deny(trivial_casts, trivial_numeric_casts)]
24    |         ^^^^^^^^^^^^^
25    = help: cast can be replaced by coercion; this might require type ascription or a temporary variable
26
27 error: aborting due to 2 previous errors
28