blob: 44c5634f4ef8aae99ce874ffaf2add3c73fad127 [file] [log] [blame]
//@ run-pass
#![allow(dead_code)]
// Check that we do not report ambiguities when the same predicate
// appears in the environment twice. Issue #21965.
trait Foo {
type B;
fn get() -> Self::B;
}
fn foo<T>() -> ()
where T : Foo<B=()>, T : Foo<B=()>
{
<T as Foo>::get()
}
fn main() {
}