17 lines
253 B
Rust
17 lines
253 B
Rust
#![allow(incomplete_features)]
|
|
|
|
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() {}
|