]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.rs
1 //~ ERROR the parameter type `Self` may not live long enough
9 trait SuperTrait
<T
>: for<'a
> GatTrait
<Gat
<'a
> = T
> {
10 fn c(&self) -> dyn SuperTrait
<T
>;
11 //~^ ERROR associated item referring to unboxed trait object for its own trait
12 //~| ERROR the trait `SuperTrait` cannot be made into an object