mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
14 lines
246 B
Rust
14 lines
246 B
Rust
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() {}
|