mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 17:07:36 +00:00
14 lines
208 B
Rust
14 lines
208 B
Rust
![]() |
use std::clone::Clone;
|
||
|
use std::ops::Deref;
|
||
|
|
||
|
#[derive(Clone)]
|
||
|
pub struct Foo {}
|
||
|
|
||
|
impl Deref for Foo {}
|
||
|
//~^ ERROR not all trait items implemented
|
||
|
|
||
|
pub fn main() {
|
||
|
let f = Foo {};
|
||
|
let _ = f.clone();
|
||
|
}
|