summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/redundant_type_annotations.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/redundant_type_annotations.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/redundant_type_annotations.stderr')
-rw-r--r--src/tools/clippy/tests/ui/redundant_type_annotations.stderr33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/tools/clippy/tests/ui/redundant_type_annotations.stderr b/src/tools/clippy/tests/ui/redundant_type_annotations.stderr
index 988ebe637..d1f26f183 100644
--- a/src/tools/clippy/tests/ui/redundant_type_annotations.stderr
+++ b/src/tools/clippy/tests/ui/redundant_type_annotations.stderr
@@ -5,99 +5,100 @@ LL | let v: u32 = self.return_an_int();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::redundant-type-annotations` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::redundant_type_annotations)]`
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:82:9
+ --> $DIR/redundant_type_annotations.rs:84:9
|
LL | let v: &u32 = self.return_a_ref();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:83:9
+ --> $DIR/redundant_type_annotations.rs:86:9
|
LL | let v: &Slice = self.return_a_ref_to_struct();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:155:5
+ --> $DIR/redundant_type_annotations.rs:159:5
|
LL | let _return: String = return_a_string();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:157:5
+ --> $DIR/redundant_type_annotations.rs:162:5
|
LL | let _return: Pie = return_a_struct();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:159:5
+ --> $DIR/redundant_type_annotations.rs:165:5
|
LL | let _return: Pizza = return_an_enum();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:161:5
+ --> $DIR/redundant_type_annotations.rs:168:5
|
LL | let _return: u32 = return_an_int();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:163:5
+ --> $DIR/redundant_type_annotations.rs:171:5
|
LL | let _return: String = String::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:165:5
+ --> $DIR/redundant_type_annotations.rs:174:5
|
LL | let new_pie: Pie = Pie::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:167:5
+ --> $DIR/redundant_type_annotations.rs:177:5
|
LL | let _return: u32 = new_pie.return_an_int();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:169:5
+ --> $DIR/redundant_type_annotations.rs:180:5
|
LL | let _return: u32 = Pie::associated_return_an_int();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:171:5
+ --> $DIR/redundant_type_annotations.rs:183:5
|
LL | let _return: String = Pie::associated_return_a_string();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:177:5
+ --> $DIR/redundant_type_annotations.rs:190:5
|
LL | let _var: u32 = u32::MAX;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:179:5
+ --> $DIR/redundant_type_annotations.rs:193:5
|
LL | let _var: u32 = 5_u32;
| ^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:181:5
+ --> $DIR/redundant_type_annotations.rs:196:5
|
LL | let _var: &str = "test";
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:183:5
+ --> $DIR/redundant_type_annotations.rs:199:5
|
LL | let _var: &[u8] = b"test";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant type annotation
- --> $DIR/redundant_type_annotations.rs:185:5
+ --> $DIR/redundant_type_annotations.rs:202:5
|
LL | let _var: bool = false;
| ^^^^^^^^^^^^^^^^^^^^^^^