Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
static
/
bad-const-type.rs
blob: 696fa295af4192fc3abe5e5b7c24a3bba78a56d0 [
file
]
static
i
:
String
=
10
;
//~^ ERROR: mismatched types
//~| NOTE: expected `String`, found integer
//~| NOTE: expected because
fn
main
()
{
println
!(
"{}"
,
i
);
}