2018-10-03 12:55:31 +02:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 15:33:46 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:49:5
|
2018-10-03 12:55:31 +02:00
|
|
|
|
|
2018-10-13 15:33:46 +02:00
|
|
|
49 | / pub fn new(_: String) -> impl R<Item = u32> {
|
|
|
|
50 | | S3
|
|
|
|
51 | | }
|
2018-10-03 12:55:31 +02:00
|
|
|
| |_____^
|
2018-10-03 13:59:14 +02:00
|
|
|
|
|
|
|
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
|
2018-10-03 12:55:31 +02:00
|
|
|
|
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 15:33:46 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:81:5
|
2018-10-03 12:55:31 +02:00
|
|
|
|
|
2018-10-13 15:33:46 +02:00
|
|
|
81 | / pub fn new() -> u32 {
|
|
|
|
82 | | unimplemented!();
|
|
|
|
83 | | }
|
2018-10-03 12:55:31 +02:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-05 04:01:04 +02:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-13 15:33:46 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:90:5
|
2018-10-05 04:01:04 +02:00
|
|
|
|
|
2018-10-13 15:33:46 +02:00
|
|
|
90 | / pub fn new(_: String) -> u32 {
|
|
|
|
91 | | unimplemented!();
|
|
|
|
92 | | }
|
2018-10-05 04:01:04 +02:00
|
|
|
| |_____^
|
|
|
|
|
2018-10-19 13:55:06 +02:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/new_ret_no_self.rs:126:5
|
2018-10-19 13:55:06 +02:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
126 | / pub fn new() -> (u32, u32) {
|
|
|
|
127 | | unimplemented!();
|
|
|
|
128 | | }
|
|
|
|
| |_____^
|
2018-10-19 13:55:06 +02:00
|
|
|
|
2018-10-19 14:20:33 +02:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/new_ret_no_self.rs:153:5
|
2018-10-19 14:20:33 +02:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
153 | / pub fn new() -> *mut V {
|
|
|
|
154 | | unimplemented!();
|
|
|
|
155 | | }
|
|
|
|
| |_____^
|
2018-10-19 14:20:33 +02:00
|
|
|
|
2018-10-20 15:29:17 +02:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/new_ret_no_self.rs:171:5
|
2018-10-20 15:29:17 +02:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
171 | / pub fn new() -> Option<u32> {
|
|
|
|
172 | | unimplemented!();
|
|
|
|
173 | | }
|
|
|
|
| |_____^
|
2018-10-20 15:29:17 +02:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-10-03 12:55:31 +02:00
|
|
|
|