1 #![warn(clippy::new_ret_no_self)]
2 #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]
22 // should not trigger the lint
23 pub fn new() -> impl R<Item = Self> {
35 // should not trigger the lint
36 pub fn new(_: String) -> impl R<Item = Self> {
48 // should trigger the lint
49 pub fn new(_: String) -> impl R<Item = u32> {
62 // should not trigger the lint
63 pub fn new(_: String) -> impl Q<Item = u32, Item2 = Self> {
71 // should not trigger lint
72 pub fn new() -> Self {
80 // should trigger lint
89 // should trigger lint
90 pub fn new(_: String) -> u32 {