#![warn(clippy::all)] #![allow(clippy::boxed_local, clippy::needless_pass_by_value)] #![allow(clippy::blacklisted_name, unused_variables, dead_code)] #![allow(unused_imports)] pub struct MyStruct {} pub struct SubT { foo: T, } pub enum MyEnum { One, Two, } mod outer_box { use crate::MyEnum; use crate::MyStruct; use crate::SubT; use std::boxed::Box; use std::rc::Rc; use std::sync::Arc; pub fn box_test6(foo: Box>) {} pub fn box_test7(foo: Box>) {} pub fn box_test8() -> Box>> { unimplemented!(); } pub fn box_test9(foo: Box>) -> Box>> { unimplemented!(); } } mod outer_rc { use crate::MyEnum; use crate::MyStruct; use crate::SubT; use std::boxed::Box; use std::rc::Rc; use std::sync::Arc; pub fn rc_test5(a: Rc>) {} pub fn rc_test7(a: Rc>) {} pub fn rc_test8() -> Rc>> { unimplemented!(); } pub fn rc_test9(foo: Rc>) -> Rc>> { unimplemented!(); } } mod outer_arc { use crate::MyEnum; use crate::MyStruct; use crate::SubT; use std::boxed::Box; use std::rc::Rc; use std::sync::Arc; pub fn arc_test5(a: Arc>) {} pub fn arc_test6(a: Arc>) {} pub fn arc_test8() -> Arc>> { unimplemented!(); } pub fn arc_test9(foo: Arc>) -> Arc>> { unimplemented!(); } } fn main() {}