Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new_ret_no_self corrected panic and added test stderr
- Loading branch information
1 parent
eb854b2
commit 13ce96c
Showing
3 changed files
with
65 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error: methods called `new` usually return `Self` | ||
--> $DIR/new_ret_no_self.rs:51:5 | ||
| | ||
51 | / pub fn new() -> u32 { | ||
52 | | unimplemented!(); | ||
53 | | } | ||
| |_____^ | ||
|
||
error: methods called `new` usually return `Self` | ||
--> $DIR/new_ret_no_self.rs:60:5 | ||
| | ||
60 | / pub fn new(_: String) -> u32 { | ||
61 | | unimplemented!(); | ||
62 | | } | ||
| |_____^ | ||
|
||
error: aborting due to 2 previous errors | ||
|