Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
issue-98608.rs
blob: 5612ccd6caed2024f71e178dedc197bd35e455fc [
file
] [
log
] [
blame
]
fn
hi
()
->
impl
Sized
{
std
::
ptr
::
null
::<
u8
>()
}
fn
main
()
{
let
b
:
Box
<
dyn
Fn
()
->
Box
<
u8
>>
=
Box
::
new
(
hi
);
//~^ ERROR expected `hi` to return `Box<u8>`, but it returns `impl Sized`
let
boxed
=
b
();
let
null
=
*
boxed
;
println
!(
"{null:?}"
);
}