]>
git.proxmox.com Git - rustc.git/blob - tests/ui/late-bound-lifetimes/issue-36381.rs
2 // Regression test for #36381. The monomorphization collector was asserting that
3 // there are no projection types, but the `<&str as
4 // StreamOnce>::Position` projection contained a late-bound region,
5 // and we don't currently normalize in that case until the function is
12 impl<'a
> StreamOnce
for &'a
str {
13 type Position
= usize;
16 pub fn parser
<F
>(_
: F
) {
19 fn follow(_
: &str) -> <&str as StreamOnce
>::Position
{