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