16 lines
296 B
Rust
16 lines
296 B
Rust
#![feature(return_position_impl_trait_in_trait)]
|
|
|
|
trait MyTrait {
|
|
fn foo(&self) -> impl Sized;
|
|
fn bar(&self) -> impl Sized;
|
|
}
|
|
|
|
impl MyTrait for i32 {
|
|
//~^ ERROR not all trait items implemented, missing: `foo`
|
|
fn bar(&self) -> impl Sized {
|
|
self.foo()
|
|
}
|
|
}
|
|
|
|
fn main() {}
|