about summary refs log tree commit diff
path: root/tests/ui/consts/issue-39974.stderr
blob: 1c15debb1199c0f4692eac6291523dc9b81f929b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0308]: mismatched types
  --> $DIR/issue-39974.rs:6:19
   |
LL |     f: [[f64; 2]; LENGTH],
   |                   ^^^^^^ expected `usize`, found `f64`

error[E0308]: mismatched types
  --> $DIR/issue-39974.rs:1:21
   |
LL | const LENGTH: f64 = 2;
   |                     ^ expected `f64`, found integer
   |
help: use a float literal
   |
LL | const LENGTH: f64 = 2.0;
   |                      ++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.