2 #![warn(clippy::rc_mutex)]
3 #![allow(unused_imports)]
4 #![allow(clippy::boxed_local, clippy::needless_pass_by_value)]
5 #![allow(clippy::blacklisted_name, unused_variables, dead_code)]
7 use std::cell::RefCell;
11 pub struct MyStruct {}
22 pub fn test1<T>(foo: Rc<RefCell<T>>) {}
24 pub fn test2(foo: Rc<RefCell<MyEnum>>) {}
26 pub fn test3(foo: Rc<RefCell<SubT<usize>>>) {}