2018-10-03 12:55:31 +02:00
|
|
|
error: methods called `new` usually return `Self`
|
2018-10-03 13:59:14 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:64:5
|
2018-10-03 12:55:31 +02:00
|
|
|
|
|
2018-10-03 13:59:14 +02:00
|
|
|
64 | / pub fn new() -> u32 {
|
|
|
|
65 | | unimplemented!();
|
|
|
|
66 | | }
|
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-03 13:59:14 +02:00
|
|
|
--> $DIR/new_ret_no_self.rs:73:5
|
2018-10-03 12:55:31 +02:00
|
|
|
|
|
2018-10-03 13:59:14 +02:00
|
|
|
73 | / pub fn new(_: String) -> u32 {
|
|
|
|
74 | | unimplemented!();
|
|
|
|
75 | | }
|
2018-10-03 12:55:31 +02:00
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|