blob: 5db5e4e70a8e7b0b05e6a825280899450f14b863 [file]
//@ compile-flags: -Zverbose-internals
#![feature(rustc_attrs)]
#![rustc_dump_hidden_type_of_opaques]
trait Foo {
fn hello(&self) -> impl Sized;
}
fn hello<'s, T: Foo>(x: &'s T) -> impl Sized + use<'s, T> {
//~^ ERROR <T as Foo>::hello::{anon_assoc#0}<'s/#1>
x.hello()
}
fn main() {}