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> {
41 // // should not trigger lint
42 // pub fn new() -> Self {
50 // should trigger lint
59 // should trigger lint
60 pub fn new(_: String) -> u32 {