blob: 2a417e74936d47e00c0ec66d88196615ead4480c [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
trait Foo<T> {
type A;
fn test(a: Self::A) -> Self::A {
a
}
}
struct Bar<T>(T);
impl<T> Foo<T> for Bar<i32> {
type A = T;
}
fn main() {
let a;
a = Bar(123);
let b;
b = Bar::test(a.0);
}