129use clippy_utils::ty::implements_trait;
130
131▶let ty = todo!("Get the `Foo` type to check for a trait implementation");
132let borrow_id = cx.tcx.get_diagnostic_item(sym::Borrow).unwrap(); // avoid unwrap in real code
133let slice_of_bytes_t = Ty::new_slice(cx.tcx, cx.tcx.types.u8);
· · ·
134let generic_param = slice_of_bytes_t.into();
135if implements_trait(cx, ty, borrow_id, &[generic_param]) {
136▶ todo!("Rest of lint implementation")
137}
138```