2018-10-03 10:55:31 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:50:5
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
|
|
LL | | S3
|
|
|
|
LL | | }
|
2018-10-03 10:55:31 +00:00
|
|
|
| |_____^
|
2018-10-03 11:59:14 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:82:5
|
2018-10-03 10:55:31 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / pub fn new() -> u32 {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
2018-10-03 10:55:31 +00:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-05 02:01:04 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:91:5
|
2018-10-05 02:01:04 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / pub fn new(_: String) -> u32 {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
2018-10-05 02:01:04 +00:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-19 11:55:06 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:127:5
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | / pub fn new() -> (u32, u32) {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-19 11:55:06 +00:00
|
|
|
|
2018-10-19 12:20:33 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:154:5
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | / pub fn new() -> *mut V {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-19 12:20:33 +00:00
|
|
|
|
2018-10-20 13:29:17 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:172:5
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | / pub fn new() -> Option<u32> {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-20 13:29:17 +00:00
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:225:9
|
2020-08-28 14:10:16 +00:00
|
|
|
|
|
|
|
|
LL | fn new() -> String;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:237:9
|
2020-08-28 14:10:16 +00:00
|
|
|
|
|
|
|
|
LL | fn new(_: String) -> String;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:272:9
|
2020-08-28 14:10:16 +00:00
|
|
|
|
|
|
|
|
LL | / fn new() -> (u32, u32) {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:299:9
|
2020-08-28 14:10:16 +00:00
|
|
|
|
|
|
|
|
LL | / fn new() -> *mut V {
|
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
2022-11-21 19:34:47 +00:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:369:9
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | / fn new(t: T) -> impl Into<i32> {
|
|
|
|
LL | | 1
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 13:12:54 +00:00
|
|
|
--> $DIR/new_ret_no_self.rs:390:9
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | / fn new(t: T) -> impl Trait2<(), i32> {
|
|
|
|
LL | | unimplemented!()
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
2023-03-07 12:03:11 +00:00
|
|
|
error: aborting due to 12 previous errors
|
2018-10-03 10:55:31 +00:00
|
|
|
|