Add test for uniquifying regions
This commit is contained in:
parent
43e6f99b9d
commit
c68c6c3942
1 changed files with 12 additions and 0 deletions
12
tests/ui/traits/new-solver/iter-filter-projection.rs
Normal file
12
tests/ui/traits/new-solver/iter-filter-projection.rs
Normal 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>>();
|
||||
}
|
Loading…
Add table
Reference in a new issue