0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-28 18:35:29 +01:00
rust/tests/ui/methods/dont-suggest-import-on-deref-err.rs

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();
}