summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_tuples.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/pattern_type_mismatch/pattern_tuples.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/pattern_type_mismatch/pattern_tuples.stderr')
-rw-r--r--src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_tuples.stderr19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_tuples.stderr b/src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_tuples.stderr
index a1ef540d2..b365731d5 100644
--- a/src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_tuples.stderr
+++ b/src/tools/clippy/tests/ui/pattern_type_mismatch/pattern_tuples.stderr
@@ -6,9 +6,10 @@ LL | let TupleStruct(_) = ref_value;
|
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
= note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::pattern_type_mismatch)]`
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:12:25
+ --> $DIR/pattern_tuples.rs:13:25
|
LL | if let &TupleStruct(Some(_)) = ref_value {}
| ^^^^^^^
@@ -16,7 +17,7 @@ LL | if let &TupleStruct(Some(_)) = ref_value {}
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:13:24
+ --> $DIR/pattern_tuples.rs:15:24
|
LL | if let TupleStruct(Some(_)) = *ref_value {}
| ^^^^^^^
@@ -24,7 +25,7 @@ LL | if let TupleStruct(Some(_)) = *ref_value {}
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:30:12
+ --> $DIR/pattern_tuples.rs:33:12
|
LL | if let TupleEnum::Var(_) = ref_value {}
| ^^^^^^^^^^^^^^^^^
@@ -32,7 +33,7 @@ LL | if let TupleEnum::Var(_) = ref_value {}
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:31:28
+ --> $DIR/pattern_tuples.rs:35:28
|
LL | if let &TupleEnum::Var(Some(_)) = ref_value {}
| ^^^^^^^
@@ -40,7 +41,7 @@ LL | if let &TupleEnum::Var(Some(_)) = ref_value {}
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:32:27
+ --> $DIR/pattern_tuples.rs:37:27
|
LL | if let TupleEnum::Var(Some(_)) = *ref_value {}
| ^^^^^^^
@@ -48,7 +49,7 @@ LL | if let TupleEnum::Var(Some(_)) = *ref_value {}
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:33:12
+ --> $DIR/pattern_tuples.rs:39:12
|
LL | if let TupleEnum::Empty = ref_value {}
| ^^^^^^^^^^^^^^^^
@@ -56,7 +57,7 @@ LL | if let TupleEnum::Empty = ref_value {}
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:48:9
+ --> $DIR/pattern_tuples.rs:55:9
|
LL | let (_a, _b) = ref_value;
| ^^^^^^^^
@@ -64,7 +65,7 @@ LL | let (_a, _b) = ref_value;
= help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:49:18
+ --> $DIR/pattern_tuples.rs:57:18
|
LL | if let &(_a, Some(_)) = ref_value {}
| ^^^^^^^
@@ -72,7 +73,7 @@ LL | if let &(_a, Some(_)) = ref_value {}
= help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings
error: type of pattern does not match the expression type
- --> $DIR/pattern_tuples.rs:50:17
+ --> $DIR/pattern_tuples.rs:59:17
|
LL | if let (_a, Some(_)) = *ref_value {}
| ^^^^^^^