summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/new_ret_no_self.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /src/tools/clippy/tests/ui/new_ret_no_self.stderr
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/new_ret_no_self.stderr')
-rw-r--r--src/tools/clippy/tests/ui/new_ret_no_self.stderr34
1 files changed, 23 insertions, 11 deletions
diff --git a/src/tools/clippy/tests/ui/new_ret_no_self.stderr b/src/tools/clippy/tests/ui/new_ret_no_self.stderr
index 2b053b462..8436e101f 100644
--- a/src/tools/clippy/tests/ui/new_ret_no_self.stderr
+++ b/src/tools/clippy/tests/ui/new_ret_no_self.stderr
@@ -2,92 +2,104 @@ error: methods called `new` usually return `Self`
--> $DIR/new_ret_no_self.rs:50:5
|
LL | / pub fn new(_: String) -> impl R<Item = u32> {
+LL | |
+LL | |
LL | | S3
LL | | }
| |_____^
|
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::new_ret_no_self)]`
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:82:5
+ --> $DIR/new_ret_no_self.rs:84:5
|
LL | / pub fn new() -> u32 {
+LL | |
LL | | unimplemented!();
LL | | }
| |_____^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:91:5
+ --> $DIR/new_ret_no_self.rs:94:5
|
LL | / pub fn new(_: String) -> u32 {
+LL | |
LL | | unimplemented!();
LL | | }
| |_____^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:127:5
+ --> $DIR/new_ret_no_self.rs:131:5
|
LL | / pub fn new() -> (u32, u32) {
+LL | |
LL | | unimplemented!();
LL | | }
| |_____^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:154:5
+ --> $DIR/new_ret_no_self.rs:159:5
|
LL | / pub fn new() -> *mut V {
+LL | |
LL | | unimplemented!();
LL | | }
| |_____^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:172:5
+ --> $DIR/new_ret_no_self.rs:178:5
|
LL | / pub fn new() -> Option<u32> {
+LL | |
LL | | unimplemented!();
LL | | }
| |_____^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:225:9
+ --> $DIR/new_ret_no_self.rs:232:9
|
LL | fn new() -> String;
| ^^^^^^^^^^^^^^^^^^^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:237:9
+ --> $DIR/new_ret_no_self.rs:245:9
|
LL | fn new(_: String) -> String;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:272:9
+ --> $DIR/new_ret_no_self.rs:281:9
|
LL | / fn new() -> (u32, u32) {
+LL | |
LL | | unimplemented!();
LL | | }
| |_________^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:299:9
+ --> $DIR/new_ret_no_self.rs:309:9
|
LL | / fn new() -> *mut V {
+LL | |
LL | | unimplemented!();
LL | | }
| |_________^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:369:9
+ --> $DIR/new_ret_no_self.rs:380:9
|
LL | / fn new(t: T) -> impl Into<i32> {
+LL | |
LL | | 1
LL | | }
| |_________^
error: methods called `new` usually return `Self`
- --> $DIR/new_ret_no_self.rs:390:9
+ --> $DIR/new_ret_no_self.rs:402:9
|
LL | / fn new(t: T) -> impl Trait2<(), i32> {
+LL | |
LL | | unimplemented!()
LL | | }
| |_________^