Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
str
/
str-lit-type-mismatch.rs
blob: 12637c7b994bd727cd73d2c8403bc28d1415b21f [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
:
&[
u8
]
=
"foo"
;
//~ ERROR mismatched types
let
y
:
&[
u8
;
4
]
=
"baaa"
;
//~ ERROR mismatched types
let
z
:
&
str
=
b
"foo"
;
//~ ERROR mismatched types
}