about summary refs log tree commit diff
path: root/tests/ui/lint/internal/higher-ranked-query-instability.rs
blob: 4407baac0c678e379fcf3e5021aa5201e3ba00f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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::<()>();
}