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