2018-10-03 03:55:31 -07:00
|
|
|
error: methods called `new` usually return `Self`
|
2022-12-17 14:12:54 +01:00
|
|
|
--> $DIR/new_ret_no_self.rs:50:5
|
2018-10-03 03:55:31 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | / pub fn new(_: String) -> impl R<Item = u32> {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | S3
|
|
|
|
LL | | }
|
2018-10-03 03:55:31 -07:00
|
|
|
| |_____^
|
2018-10-03 04:59:14 -07:00
|
|
|
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::new_ret_no_self)]`
|
2018-10-03 03:55:31 -07:00
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:84:5
|
2018-10-03 03:55:31 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | / pub fn new() -> u32 {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
2018-10-03 03:55:31 -07:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-04 19:01:04 -07:00
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:94:5
|
2018-10-04 19:01:04 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | / pub fn new(_: String) -> u32 {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
2018-10-04 19:01:04 -07:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-19 04:55:06 -07:00
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:131:5
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | / pub fn new() -> (u32, u32) {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-19 04:55:06 -07:00
|
|
|
|
2018-10-19 05:20:33 -07:00
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:159:5
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | / pub fn new() -> *mut V {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-19 05:20:33 -07:00
|
|
|
|
2018-10-20 06:29:17 -07:00
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:178:5
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
LL | / pub fn new() -> Option<u32> {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2018-10-20 06:29:17 -07:00
|
|
|
|
2020-08-28 16:10:16 +02:00
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:232:9
|
2020-08-28 16:10:16 +02:00
|
|
|
|
|
|
|
|
LL | fn new() -> String;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:245:9
|
2020-08-28 16:10:16 +02:00
|
|
|
|
|
|
|
|
LL | fn new(_: String) -> String;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:281:9
|
2020-08-28 16:10:16 +02:00
|
|
|
|
|
|
|
|
LL | / fn new() -> (u32, u32) {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2020-08-28 16:10:16 +02:00
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:309:9
|
2020-08-28 16:10:16 +02:00
|
|
|
|
|
|
|
|
LL | / fn new() -> *mut V {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2020-08-28 16:10:16 +02:00
|
|
|
LL | | unimplemented!();
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
2022-11-21 20:34:47 +01:00
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:380:9
|
2022-11-21 20:34:47 +01:00
|
|
|
|
|
|
|
|
LL | / fn new(t: T) -> impl Into<i32> {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2022-11-21 20:34:47 +01:00
|
|
|
LL | | 1
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:402:9
|
2022-11-21 20:34:47 +01:00
|
|
|
|
|
|
|
|
LL | / fn new(t: T) -> impl Trait2<(), i32> {
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2022-11-21 20:34:47 +01:00
|
|
|
LL | | unimplemented!()
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
2023-03-07 12:03:11 +00:00
|
|
|
error: aborting due to 12 previous errors
|
2018-10-03 03:55:31 -07:00
|
|
|
|