1 #![deny(clippy::borrowed_box)]
2 #![allow(clippy::blacklisted_name)]
3 #![allow(unused_variables)]
6 pub fn test1(foo: &mut Box<bool>) {
19 fn test4(a: &Box<bool>);
22 impl<'a> Test4 for Test3<'a> {
23 fn test4(a: &Box<bool>) {
30 pub fn test5(foo: &mut Box<Any>) {
43 fn test8(a: &Box<Any>);
46 impl<'a> Test8 for Test7<'a> {
47 fn test8(a: &Box<Any>) {
52 pub fn test9(foo: &mut Box<Any + Send + Sync>) {
57 let foo: &Box<Any + Send + 'static>;
61 foo: &'a Box<Any + Send>,
65 fn test4(a: &Box<Any + 'static>);
68 impl<'a> Test12 for Test11<'a> {
69 fn test4(a: &Box<Any + 'static>) {
75 test1(&mut Box::new(false));
77 test5(&mut (Box::new(false) as Box<Any>));
79 test9(&mut (Box::new(false) as Box<Any + Send + Sync>));