blob: 6a60c9574c7eec3226b68c2d66d1fd2dd0babd5f [file]
#![feature(no_core)]
#![feature(lang_items)]
#![no_core]
#[lang = "sized"]
trait Sized {}
trait Foo {
type Bar<T>;
fn put<T>(self, x: Self::Bar<T>) -> Self::Bar<T>;
}
impl Foo for i32 {
type Bar<T> = T;
fn put<T>(self, x: Self::Bar<T>) -> Self::Bar<T> {
x
}
}
fn main() {
let x: i32 = 1;
let _r = x.put::<i64>(2i64);
}