blob: a4f235c14dd3c8333bdc91e2967771ad9c7aed87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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();
}
}
|