summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs
blob: 12ca100435a47a63e027936cd63de6631a9d3f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass
#![allow(dead_code)]
// Check that we do not report ambiguities when equivalent predicates
// (modulo bound lifetime names) appears in the environment
// twice. Issue #21965.

// pretty-expanded FIXME #23616

fn foo<T>(t: T) -> i32
    where T : for<'a> Fn(&'a u8) -> i32,
          T : for<'b> Fn(&'b u8) -> i32,
{
    t(&3)
}

fn main() {
}