blob: f691998b0c5f215f7034b74269feca079f3e6868 [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct Foo(u32);
// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }
pub trait Bar {
fn bar(self);
}
impl Foo {
pub fn map<F>(f: F)
where
F: Bar,
{
f.bar();
}
}