]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/bugs/hrtb-implied-3.rs
1 trait LendingIterator
{
7 impl LendingIterator
for &str {
8 type Item
<'a
> = () where Self:'a
;
11 fn trivial_bound
<I
>(_
: I
)
14 for<'a
> I
::Item
<'a
>: Sized
,
18 fn fails(iter
: &str) {
20 //~^ borrowed data escapes