]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/new_ret_no_self.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / new_ret_no_self.stderr
index bab9627ca225cd1de6a8f86aa5a70d06c4832757..8217bc6187f93aa5cfce1ddbc5ce7ed4788b6173 100644 (file)
@@ -1,9 +1,9 @@
 error: methods called `new` usually return `Self`
   --> $DIR/new_ret_no_self.rs:49:5
    |
-49 | /     pub fn new(_: String) -> impl R<Item = u32> {
-50 | |         S3
-51 | |     }
+LL | /     pub fn new(_: String) -> impl R<Item = u32> {
+LL | |         S3
+LL | |     }
    | |_____^
    |
    = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
@@ -11,36 +11,70 @@ error: methods called `new` usually return `Self`
 error: methods called `new` usually return `Self`
   --> $DIR/new_ret_no_self.rs:81:5
    |
-81 | /     pub fn new() -> u32 {
-82 | |         unimplemented!();
-83 | |     }
+LL | /     pub fn new() -> u32 {
+LL | |         unimplemented!();
+LL | |     }
    | |_____^
 
 error: methods called `new` usually return `Self`
   --> $DIR/new_ret_no_self.rs:90:5
    |
-90 | /     pub fn new(_: String) -> u32 {
-91 | |         unimplemented!();
-92 | |     }
+LL | /     pub fn new(_: String) -> u32 {
+LL | |         unimplemented!();
+LL | |     }
    | |_____^
 
 error: methods called `new` usually return `Self`
-   --> $DIR/new_ret_no_self.rs:120:5
-    |
-120 |     pub fn new() -> (u32, u32) { unimplemented!(); }
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/new_ret_no_self.rs:126:5
+   |
+LL | /     pub fn new() -> (u32, u32) {
+LL | |         unimplemented!();
+LL | |     }
+   | |_____^
+
+error: methods called `new` usually return `Self`
+  --> $DIR/new_ret_no_self.rs:153:5
+   |
+LL | /     pub fn new() -> *mut V {
+LL | |         unimplemented!();
+LL | |     }
+   | |_____^
+
+error: methods called `new` usually return `Self`
+  --> $DIR/new_ret_no_self.rs:171:5
+   |
+LL | /     pub fn new() -> Option<u32> {
+LL | |         unimplemented!();
+LL | |     }
+   | |_____^
 
 error: methods called `new` usually return `Self`
-   --> $DIR/new_ret_no_self.rs:141:5
-    |
-141 |     pub fn new() -> *mut V { unimplemented!(); }
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/new_ret_no_self.rs:224:9
+   |
+LL |         fn new() -> String;
+   |         ^^^^^^^^^^^^^^^^^^^
+
+error: methods called `new` usually return `Self`
+  --> $DIR/new_ret_no_self.rs:236:9
+   |
+LL |         fn new(_: String) -> String;
+   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: methods called `new` usually return `Self`
-   --> $DIR/new_ret_no_self.rs:155:5
-    |
-155 |     pub fn new() -> Option<u32> { unimplemented!(); }
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/new_ret_no_self.rs:271:9
+   |
+LL | /         fn new() -> (u32, u32) {
+LL | |             unimplemented!();
+LL | |         }
+   | |_________^
+
+error: methods called `new` usually return `Self`
+  --> $DIR/new_ret_no_self.rs:298:9
+   |
+LL | /         fn new() -> *mut V {
+LL | |             unimplemented!();
+LL | |         }
+   | |_________^
 
-error: aborting due to 6 previous errors
+error: aborting due to 10 previous errors