error: types with lifetimes or generics aren't allowed --> $DIR/improper_types.rs:8:17 | 8 | fn test(_arg_1: Box) {} | ^^^ error: types with lifetimes or generics aren't allowed --> $DIR/improper_types.rs:11:27 | 11 | fn test2(_arg_1: std::rc::Rc) {} | ^^ error: types with lifetimes or generics aren't allowed --> $DIR/improper_types.rs:14:36 | 14 | fn test3(_arg_1: std::collections::HashMap) {} | ^^^^^^^ error: Incorrect argument type, only path or reference are available on this position --> $DIR/improper_types.rs:17:26 | 17 | fn test4(_arg_1: i32) -> (i32, i32) { | ^^^^^^^^^^ error: types with lifetimes or generics aren't allowed --> $DIR/improper_types.rs:22:26 | 22 | fn test5(_arg_1: i32) -> Box { | ^^^