Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
deep-match-works.rs
blob: 591429d60475d14c6b15432ae2e39287ed3725df [
file
] [
log
] [
blame
]
//@ check-pass
pub
struct
Wrapper
<
T
>(
T
);
pub
trait
Foo
{
fn
bar
()
->
Wrapper
<
impl
Sized
>;
}
impl
Foo
for
()
{
#[
expect
(
refining_impl_trait
)]
fn
bar
()
->
Wrapper
<
i32
>
{
Wrapper
(
0
)
}
}
fn
main
()
{}