Skip to content

Commit

Permalink
Add test for uniquifying regions
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Apr 14, 2023
1 parent 43e6f99 commit c68c6c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/ui/traits/new-solver/iter-filter-projection.rs
Original file line number Diff line number Diff line change
@@ -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>>();
}

0 comments on commit c68c6c3

Please sign in to comment.