about summary refs log tree commit diff
path: root/tests/ui/static/bad-const-type.stderr
blob: 8573a11ef291267a8bfc8f992fa8d8e13dfb9a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/bad-const-type.rs:1:20
   |
LL | static i: String = 10;
   |                    ^^ expected `String`, found integer
   |
help: try using a conversion method
   |
LL | static i: String = 10.to_string();
   |                      ++++++++++++

error: aborting due to 1 previous error

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