]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/mismatched_trait_impl-2.rs
Do not suggest using a const parameter when there are bounds on an unused type parameter
[rust.git] / src / test / ui / in-band-lifetimes / mismatched_trait_impl-2.rs
1 use std::ops::Deref;
2 trait Trait {}
3
4 struct Struct;
5
6 impl Deref for Struct {
7     type Target = dyn Trait;
8     fn deref(&self) -> &dyn Trait {
9     //~^ ERROR `impl` item signature doesn't match `trait` item signature
10         unimplemented!();
11     }
12 }
13
14 fn main() {}