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