2 #![allow(unused_variables)]
3 #![allow(unused_imports)]
4 // Test that we don't trigger on the blanket impl for all `&'a T` but
5 // rather keep autoderefing and trigger on the underlying impl. To
6 // know not to stop at the blanket, we have to recursively evaluate
9 // pretty-expanded FIXME #23616
11 use std::marker::Sized;
13 // Note: this must be generic for the problem to show up
18 impl Foo<u8> for [u8] {
19 fn foo(&self, a: u8) {}
22 impl<'a, A, T> Foo<A> for &'a T where T: Foo<A> {