Add test for uniquifying regions

This commit is contained in:
Michael Goulet 2023-04-14 03:21:21 +00:00
parent 43e6f99b9d
commit c68c6c3942

View file

@ -0,0 +1,12 @@
// compile-flags: -Ztrait-solver=next
// check-pass
use std::{iter, slice};
struct Attr;
fn test<'a, T: Iterator<Item = &'a Attr>>() {}
fn main() {
test::<iter::Filter<slice::Iter<'_, Attr>, fn(&&Attr) -> bool>>();
}