summaryrefslogtreecommitdiffstats
path: root/src/test/ui/namespace/namespace-mix.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/namespace/namespace-mix.stderr')
-rw-r--r--src/test/ui/namespace/namespace-mix.stderr20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/test/ui/namespace/namespace-mix.stderr b/src/test/ui/namespace/namespace-mix.stderr
index c07914df7..cb72d4a1c 100644
--- a/src/test/ui/namespace/namespace-mix.stderr
+++ b/src/test/ui/namespace/namespace-mix.stderr
@@ -52,21 +52,16 @@ LL - check(xm1::S);
LL + check(S);
|
-error[E0423]: expected value, found struct variant `m7::V`
+error[E0423]: expected value, found type alias `m7::V`
--> $DIR/namespace-mix.rs:100:11
|
-LL | V {},
- | ---- `m7::V` defined here
LL | TV(),
| ---- similarly named tuple variant `TV` defined here
...
LL | check(m7::V);
| ^^^^^
|
-help: use struct literal syntax instead
- |
-LL | check(m7::V {});
- | ~~~~~~~~
+ = note: can't use a type alias as a constructor
help: a tuple variant with a similar name exists
|
LL | check(m7::TV);
@@ -83,23 +78,18 @@ LL - check(m7::V);
LL + check(V);
|
-error[E0423]: expected value, found struct variant `xm7::V`
+error[E0423]: expected value, found type alias `xm7::V`
--> $DIR/namespace-mix.rs:106:11
|
LL | check(xm7::V);
| ^^^^^^
|
- ::: $DIR/auxiliary/namespace-mix.rs:6:9
+ ::: $DIR/auxiliary/namespace-mix.rs:7:9
|
-LL | V {},
- | - `xm7::V` defined here
LL | TV(),
| -- similarly named tuple variant `TV` defined here
|
-help: use struct literal syntax instead
- |
-LL | check(xm7::V { /* fields */ });
- | ~~~~~~~~~~~~~~~~~~~~~~~
+ = note: can't use a type alias as a constructor
help: a tuple variant with a similar name exists
|
LL | check(xm7::TV);