blob: a487e9ffcde1946253977682ff01aa31ff464750 [file]
#![feature(no_core)]
#![no_core]
struct Foo<'a> {
// { dg-warning "struct is never constructed: .Foo." "" { target *-*-* } .-1 }
data: &'a [u8],
}
impl<'a> Foo<'a> {
fn bar(self: &mut Foo<'a>) {}
// { dg-warning "associated function is never used: .bar." "" { target *-*-* } .-1 }
}
fn main() {}