Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
unsized-locals
/
issue-50940-with-feature.rs
blob: 3e5d39ab311509000c230009f630ad744c9f3f0f [
file
] [
log
] [
blame
]
#![
feature
(
unsized_locals
)]
fn
main
()
{
struct
A
<
X
:
?
Sized
>(
X
);
A
as
fn
(
str
)
->
A
<
str
>;
//~^ERROR the size for values of type `str` cannot be known at compilation time
}