Skip to content

Commit c68c6c3

Browse files
Add test for uniquifying regions
1 parent 43e6f99 commit c68c6c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// compile-flags: -Ztrait-solver=next
2+
// check-pass
3+
4+
use std::{iter, slice};
5+
6+
struct Attr;
7+
8+
fn test<'a, T: Iterator<Item = &'a Attr>>() {}
9+
10+
fn main() {
11+
test::<iter::Filter<slice::Iter<'_, Attr>, fn(&&Attr) -> bool>>();
12+
}

0 commit comments

Comments
 (0)