mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 19:33:16 +00:00
Add test for uniquifying regions
This commit is contained in:
parent
43e6f99b9d
commit
c68c6c3942
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…
Reference in New Issue
Block a user