Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
bad
/
bad-const-type.rs
blob: 8121929e09675855c8456d351ef98796f8df35d3 [
file
] [
log
] [
blame
]
static
i
:
String
=
10
;
//~^ ERROR mismatched types
//~| expected type `std::string::String`
//~| found type `{integer}`
//~| expected struct `std::string::String`, found integer
fn
main
()
{
println
!(
"{}"
,
i
);
}