]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/redundant_allocation.rs
1b4f2a66c705ec088d5396bc3dbed187e12579df
2 #![allow(clippy::boxed_local, clippy::needless_pass_by_value)]
3 #![allow(clippy::blacklisted_name, unused_variables, dead_code)]
4 #![allow(unused_imports)]
25 pub fn box_test6
<T
>(foo
: Box
<Rc
<T
>>) {}
27 pub fn box_test7
<T
>(foo
: Box
<Arc
<T
>>) {}
29 pub fn box_test8() -> Box
<Rc
<SubT
<usize>>> {
33 pub fn box_test9
<T
>(foo
: Box
<Arc
<T
>>) -> Box
<Arc
<SubT
<T
>>> {
46 pub fn rc_test5(a
: Rc
<Box
<bool
>>) {}
48 pub fn rc_test7(a
: Rc
<Arc
<bool
>>) {}
50 pub fn rc_test8() -> Rc
<Box
<SubT
<usize>>> {
54 pub fn rc_test9
<T
>(foo
: Rc
<Arc
<T
>>) -> Rc
<Arc
<SubT
<T
>>> {
67 pub fn arc_test5(a
: Arc
<Box
<bool
>>) {}
69 pub fn arc_test6(a
: Arc
<Rc
<bool
>>) {}
71 pub fn arc_test8() -> Arc
<Box
<SubT
<usize>>> {
75 pub fn arc_test9
<T
>(foo
: Arc
<Rc
<T
>>) -> Arc
<Rc
<SubT
<T
>>> {