summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-13407.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-13407.stderr')
-rw-r--r--tests/ui/issues/issue-13407.stderr15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/ui/issues/issue-13407.stderr b/tests/ui/issues/issue-13407.stderr
index 54b6c640d..ac2eb6581 100644
--- a/tests/ui/issues/issue-13407.stderr
+++ b/tests/ui/issues/issue-13407.stderr
@@ -10,15 +10,18 @@ note: the unit struct `C` is defined here
LL | struct C;
| ^^^^^^^^^
-error[E0070]: invalid left-hand side of assignment
- --> $DIR/issue-13407.rs:6:10
+error[E0308]: mismatched types
+ --> $DIR/issue-13407.rs:6:5
|
+LL | struct C;
+ | -------- unit struct defined here
+...
LL | A::C = 1;
- | ---- ^
+ | ^^^^ - this expression has type `{integer}`
| |
- | cannot assign to this expression
+ | expected integer, found `C`
error: aborting due to 2 previous errors
-Some errors have detailed explanations: E0070, E0603.
-For more information about an error, try `rustc --explain E0070`.
+Some errors have detailed explanations: E0308, E0603.
+For more information about an error, try `rustc --explain E0308`.