1 error: methods called `new` usually return `Self`
2 --> $DIR/new_ret_no_self.rs:50:5
4 LL | / pub fn new(_: String) -> impl R<Item = u32> {
9 = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
11 error: methods called `new` usually return `Self`
12 --> $DIR/new_ret_no_self.rs:82:5
14 LL | / pub fn new() -> u32 {
15 LL | | unimplemented!();
19 error: methods called `new` usually return `Self`
20 --> $DIR/new_ret_no_self.rs:91:5
22 LL | / pub fn new(_: String) -> u32 {
23 LL | | unimplemented!();
27 error: methods called `new` usually return `Self`
28 --> $DIR/new_ret_no_self.rs:127:5
30 LL | / pub fn new() -> (u32, u32) {
31 LL | | unimplemented!();
35 error: methods called `new` usually return `Self`
36 --> $DIR/new_ret_no_self.rs:154:5
38 LL | / pub fn new() -> *mut V {
39 LL | | unimplemented!();
43 error: methods called `new` usually return `Self`
44 --> $DIR/new_ret_no_self.rs:172:5
46 LL | / pub fn new() -> Option<u32> {
47 LL | | unimplemented!();
51 error: methods called `new` usually return `Self`
52 --> $DIR/new_ret_no_self.rs:225:9
54 LL | fn new() -> String;
57 error: methods called `new` usually return `Self`
58 --> $DIR/new_ret_no_self.rs:237:9
60 LL | fn new(_: String) -> String;
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 error: methods called `new` usually return `Self`
64 --> $DIR/new_ret_no_self.rs:272:9
66 LL | / fn new() -> (u32, u32) {
67 LL | | unimplemented!();
71 error: methods called `new` usually return `Self`
72 --> $DIR/new_ret_no_self.rs:299:9
74 LL | / fn new() -> *mut V {
75 LL | | unimplemented!();
79 error: methods called `new` usually return `Self`
80 --> $DIR/new_ret_no_self.rs:369:9
82 LL | / fn new(t: T) -> impl Into<i32> {
87 error: methods called `new` usually return `Self`
88 --> $DIR/new_ret_no_self.rs:390:9
90 LL | / fn new(t: T) -> impl Trait2<(), i32> {
91 LL | | unimplemented!()
95 error: methods called `new` usually return `Self`
96 --> $DIR/new_ret_no_self.rs:410:9
98 LL | / pub fn new() -> impl PartialOrd {
103 error: methods called `new` usually return `Self`
104 --> $DIR/new_ret_no_self.rs:421:9
106 LL | / pub fn new() -> X {
111 error: aborting due to 14 previous errors