blob: 002a14e1959e593b5b0c1ce0ea42b7e59f6a287c [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
trait A<T> {
type Output;
fn test(self, a: &T) -> &Self::Output;
}
struct Foo<T> {
// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }
start: T,
end: T,
}
impl<X> A<X> for Foo<usize> {
type Output = X;
fn test(self, a: &X) -> &Self::Output {
a
}
}