Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
deep-match.rs
blob: 82eac7760fcdccc26697b5843d7c48351af4c237 [
file
] [
log
] [
blame
] [
edit
]
struct
Wrapper
<
T
>(
T
);
trait
Foo
{
fn
bar
()
->
Wrapper
<
impl
Sized
>;
}
impl
Foo
for
()
{
fn
bar
()
->
i32
{
//~^ ERROR method `bar` has an incompatible return type for trait
0
}
}
fn
main
()
{}