1 #![deny(deref_into_dyn_supertrait)]
11 impl<'a> Deref for dyn 'a + B {
12 //~^ ERROR `(dyn B + 'a)` implements `Deref` with supertrait `A` as target
13 //~| WARN this was previously accepted by the compiler but is being phased out;
16 fn deref(&self) -> &Self::Target {
21 fn take_a(_: &dyn A) {}
23 fn whoops(b: &dyn B) {