blob: 35c7080e4bad983bd5f4a6d3ce60236d55b02c8f [file]
// { dg-options "-w" }
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
trait Sized {}
trait Trait {
fn do_thing();
}
struct MyType;
impl Trait for MyType {
fn do_thing() {}
}
struct Wrapper<T: Trait> {
value: T,
}
impl<T: Trait> Wrapper<T> {
fn call_it() {
T::do_thing();
}
}
fn main() {
let _ = Wrapper::<MyType> { value: MyType };
Wrapper::<MyType>::call_it();
}