Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
associated-types
/
ambiguous-associated-type-default.rs
blob: 31d1355d41ceea83d10825cb6610cd167d43ba08 [
file
]
//! Regression test for https://github.com/rust-lang/rust/issues/23073
#![
feature
(
associated_type_defaults
)]
trait
Foo
{
type
T
;
}
trait
Bar
{
type
Foo
:
Foo
;
type
FooT
=
<<
Self
as
Bar
>::
Foo
>::
T
;
//~ ERROR ambiguous associated type
}
fn
main
()
{}