summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/prefer-param-env-on-ambiguity.rs
blob: 909b33ec3d5a508b19c1a85c6cac37da9ba2f2b7 (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags: -Ztrait-solver=next
// 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() {}