1 #![feature(tool_lints)]
3 #![warn(clippy::new_ret_no_self)]
4 #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]
24 // should not trigger the lint
25 pub fn new() -> impl R<Item = Self> {
37 // should not trigger the lint
38 pub fn new(_: String) -> impl R<Item = Self> {
50 // should trigger the lint
51 pub fn new(_: String) -> impl R<Item = u32> {
64 // should not trigger the lint
65 pub fn new(_: String) -> impl Q<Item = u32, Item2 = Self> {
73 // should not trigger lint
74 pub fn new() -> Self {
82 // should trigger lint
91 // should trigger lint
92 pub fn new(_: String) -> u32 {