mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
13 lines
221 B
Rust
13 lines
221 B
Rust
//@ compile-flags: -Znext-solver
|
|
//@ 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>>();
|
|
}
|