mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
12 lines
290 B
Rust
12 lines
290 B
Rust
//@ check-pass
|
|
//@ compile-flags: -Zunstable-options
|
|
|
|
// Make sure we don't try to resolve instances for trait refs that have escaping
|
|
// bound vars when computing the query instability lint.
|
|
|
|
fn foo<T>() where for<'a> &'a [T]: IntoIterator<Item = &'a T> {}
|
|
|
|
fn main() {
|
|
foo::<()>();
|
|
}
|