Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
associated-types
/
issue-47385.rs
blob: d43d674e9c3a069661dd429988530a855c586aba [
file
] [
log
] [
blame
]
// check-pass
#![
feature
(
associated_type_defaults
)]
pub
struct
Foo
;
pub
trait
Bar
:
From
<<
Self
as
Bar
>::
Input
>
{
type
Input
=
Self
;
}
impl
Bar
for
Foo
{
// Will compile with explicit type:
// type Input = Self;
}
fn
main
()
{}