]>
Commit | Line | Data |
---|---|---|
2c00a5a8 XL |
1 | use std::ops::Deref; |
2 | trait Trait {} | |
a7813a04 | 3 | |
2c00a5a8 | 4 | struct Struct; |
a7813a04 | 5 | |
2c00a5a8 XL |
6 | impl Deref for Struct { |
7 | type Target = Trait; | |
8 | fn deref(&self) -> &Trait { | |
9 | unimplemented!(); | |
a7813a04 | 10 | } |
ff7c6d11 | 11 | } |
2c00a5a8 | 12 | //~^^^^ ERROR cannot infer an appropriate lifetime for lifetime parameter |
0531ce1d XL |
13 | |
14 | fn main() {} |