summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/prefer-param-env-on-ambiguity.rs
blob: f8c0223e1876e157ec344164b17acad943fa654b (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags: -Znext-solver
// check-pass

trait Foo<'a> {}
trait Bar<'a> {}

impl<'a, T: Bar<'a>> Foo<'a> for T {}
impl<T> Bar<'static> for T {}

fn main() {}