summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/resolve-inconsistent-names.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/resolve-inconsistent-names.stderr')
-rw-r--r--tests/ui/resolve/resolve-inconsistent-names.stderr56
1 files changed, 28 insertions, 28 deletions
diff --git a/tests/ui/resolve/resolve-inconsistent-names.stderr b/tests/ui/resolve/resolve-inconsistent-names.stderr
index 023db303d..d6240fb8f 100644
--- a/tests/ui/resolve/resolve-inconsistent-names.stderr
+++ b/tests/ui/resolve/resolve-inconsistent-names.stderr
@@ -1,3 +1,11 @@
+error[E0408]: variable `b` is not bound in all patterns
+ --> $DIR/resolve-inconsistent-names.rs:13:8
+ |
+LL | a | b => {}
+ | ^ - variable not in all patterns
+ | |
+ | pattern doesn't bind `b`
+
error[E0408]: variable `a` is not bound in all patterns
--> $DIR/resolve-inconsistent-names.rs:13:12
|
@@ -6,13 +14,14 @@ LL | a | b => {}
| |
| variable not in all patterns
-error[E0408]: variable `b` is not bound in all patterns
- --> $DIR/resolve-inconsistent-names.rs:13:8
+error[E0408]: variable `c` is not bound in all patterns
+ --> $DIR/resolve-inconsistent-names.rs:19:9
|
-LL | a | b => {}
- | ^ - variable not in all patterns
- | |
- | pattern doesn't bind `b`
+LL | (A, B) | (ref B, c) | (c, A) => ()
+ | ^^^^^^ - - variable not in all patterns
+ | | |
+ | | variable not in all patterns
+ | pattern doesn't bind `c`
error[E0408]: variable `A` is not bound in all patterns
--> $DIR/resolve-inconsistent-names.rs:19:18
@@ -37,15 +46,6 @@ LL | (A, B) | (ref B, c) | (c, A) => ()
| | variable not in all patterns
| variable not in all patterns
-error[E0408]: variable `c` is not bound in all patterns
- --> $DIR/resolve-inconsistent-names.rs:19:9
- |
-LL | (A, B) | (ref B, c) | (c, A) => ()
- | ^^^^^^ - - variable not in all patterns
- | | |
- | | variable not in all patterns
- | pattern doesn't bind `c`
-
error[E0409]: variable `B` is bound inconsistently across alternatives separated by `|`
--> $DIR/resolve-inconsistent-names.rs:19:23
|
@@ -54,6 +54,19 @@ LL | (A, B) | (ref B, c) | (c, A) => ()
| |
| first binding
+error[E0408]: variable `Const2` is not bound in all patterns
+ --> $DIR/resolve-inconsistent-names.rs:31:9
+ |
+LL | (CONST1, _) | (_, Const2) => ()
+ | ^^^^^^^^^^^ ------ variable not in all patterns
+ | |
+ | pattern doesn't bind `Const2`
+ |
+help: if you meant to match on constant `m::Const2`, use the full path in the pattern
+ |
+LL | (CONST1, _) | (_, m::Const2) => ()
+ | ~~~~~~~~~
+
error[E0408]: variable `CONST1` is not bound in all patterns
--> $DIR/resolve-inconsistent-names.rs:31:23
|
@@ -68,19 +81,6 @@ note: you might have meant to match on constant `m::CONST1`, which exists but is
LL | const CONST1: usize = 10;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible
-error[E0408]: variable `Const2` is not bound in all patterns
- --> $DIR/resolve-inconsistent-names.rs:31:9
- |
-LL | (CONST1, _) | (_, Const2) => ()
- | ^^^^^^^^^^^ ------ variable not in all patterns
- | |
- | pattern doesn't bind `Const2`
- |
-help: if you meant to match on constant `m::Const2`, use the full path in the pattern
- |
-LL | (CONST1, _) | (_, m::Const2) => ()
- | ~~~~~~~~~
-
error[E0308]: mismatched types
--> $DIR/resolve-inconsistent-names.rs:19:19
|