1 #![feature(tool_lints)]
3 #![warn(clippy::new_ret_no_self)]
4 #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]
19 // should not trigger the lint
20 pub fn new() -> impl R<Item = Self> {
32 // should not trigger the lint
33 pub fn new(_: String) -> impl R<Item = Self> {
45 // should trigger the lint, but currently does not
46 pub fn new(_: String) -> impl R<Item = u32> {
54 // should not trigger lint
55 pub fn new() -> Self {
63 // should trigger lint
72 // should trigger lint
73 pub fn new(_: String) -> u32 {