blob: cf7dc9cf5f1cea3051c5c0eb9272b9d16f5d3238 [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
trait Sized {}
trait Foo<T> {
fn foo(self) -> T;
}
struct Bar<T, U> {
// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }
value: U,
valte: T,
}
impl<T: Foo<U>, U> Foo<U> for Bar<T, U> {
fn foo(self) -> U {
self.value
}
}