Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
tests
/
ui
/
associated-types
/
issue-47385.rs
blob: 7627e34ba714861acdf046db32726ea72cf0a7d0 [
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
()
{}