Sign in
rust
/
rust
/
a5a286df89146c64afebc6dcbbd3f61ba67ae53b
/
.
/
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
);
}