]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / did_you_mean / issue-53280-expected-float-found-integer-literal.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-53280-expected-float-found-integer-literal.rs:2:24
3    |
4 LL |     let sixteen: f32 = 16;
5    |                  ---   ^^
6    |                  |     |
7    |                  |     expected `f32`, found integer
8    |                  |     help: use a float literal: `16.0`
9    |                  expected due to this
10
11 error[E0308]: mismatched types
12   --> $DIR/issue-53280-expected-float-found-integer-literal.rs:5:38
13    |
14 LL |     let a_million_and_seventy: f64 = 1_000_070;
15    |                                ---   ^^^^^^^^^
16    |                                |     |
17    |                                |     expected `f64`, found integer
18    |                                |     help: use a float literal: `1_000_070.0`
19    |                                expected due to this
20
21 error[E0308]: mismatched types
22   --> $DIR/issue-53280-expected-float-found-integer-literal.rs:8:30
23    |
24 LL |     let negative_nine: f32 = -9;
25    |                        ---   ^^
26    |                        |     |
27    |                        |     expected `f32`, found integer
28    |                        |     help: use a float literal: `-9.0`
29    |                        expected due to this
30
31 error[E0308]: mismatched types
32   --> $DIR/issue-53280-expected-float-found-integer-literal.rs:15:30
33    |
34 LL |     let sixteen_again: f64 = 0x10;
35    |                        ---   ^^^^ expected `f64`, found integer
36    |                        |
37    |                        expected due to this
38
39 error[E0308]: mismatched types
40   --> $DIR/issue-53280-expected-float-found-integer-literal.rs:17:30
41    |
42 LL |     let and_once_more: f32 = 0o20;
43    |                        ---   ^^^^ expected `f32`, found integer
44    |                        |
45    |                        expected due to this
46
47 error: aborting due to 5 previous errors
48
49 For more information about this error, try `rustc --explain E0308`.