2022-09-02 16:02:59 -05:00
|
|
|
struct Wrapper<T>(T);
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn bar() -> Wrapper<impl Sized>;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo for () {
|
2023-03-08 08:18:38 -06:00
|
|
|
fn bar() -> i32 {
|
|
|
|
//~^ ERROR method `bar` has an incompatible return type for trait
|
|
|
|
0
|
|
|
|
}
|
2022-09-02 16:02:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|