2 static mut DROP_RAN: bool = false;
5 fn do_something(&mut self);
10 impl Bar for BarImpl {
11 fn do_something(&mut self) {}
15 struct Foo<B: Bar>(#[allow(unused_tuple_struct_fields)] B);
17 impl<B: Bar> Drop for Foo<B> {
28 let _x: Foo<BarImpl> = Foo(BarImpl);
31 assert_eq!(DROP_RAN, true);