Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
unsized-locals
/
issue-50940-with-feature.rs
blob: 9a1ba7af19156f90218bd292d5ae5cd3610f7dd4 [
file
] [
log
] [
blame
]
#![
feature
(
unsized_fn_params
)]
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
}