rust/tests/ui/associated-types/issue-47385.rs

17 lines
243 B
Rust

//@ 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() {}