1 // Checks whether borrowing is suggested when a trait bound is not satisfied
2 // for found type `T`, but is for `&/&mut T`.
7 //~^ ERROR: the trait bound `Fancy: SomeTrait` is not satisfied [E0277]
12 impl <'a> SomeTrait for &'a Fancy {
22 // Broadly copied from https://docs.rs/petgraph/0.5.1/src/petgraph/dot.rs.html#70
23 impl<'a, G> Other<'a, G>
27 pub fn new(g: G) -> Self {