summary refs log tree commit diff
path: root/src/test/ui/empty-struct-unit-expr.stderr
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-12-10 22:47:55 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-12-14 23:23:07 +0300
commitd4e51a8fb286444a8c276a05a1c3ba6ba8ca6576 (patch)
tree242ff95d0af269023f4cd5dd1df92fec60ca346d /src/test/ui/empty-struct-unit-expr.stderr
parent3a2ad576c5d4b92bacc3355b14cc7a9bc704c782 (diff)
downloadrust-d4e51a8fb286444a8c276a05a1c3ba6ba8ca6576.tar.gz
rust-d4e51a8fb286444a8c276a05a1c3ba6ba8ca6576.zip
Move compile-fail tests with NOTE/HELP annotations to UI
Diffstat (limited to 'src/test/ui/empty-struct-unit-expr.stderr')
-rw-r--r--src/test/ui/empty-struct-unit-expr.stderr41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/ui/empty-struct-unit-expr.stderr b/src/test/ui/empty-struct-unit-expr.stderr
new file mode 100644
index 00000000000..0c722dd645d
--- /dev/null
+++ b/src/test/ui/empty-struct-unit-expr.stderr
@@ -0,0 +1,41 @@
+error[E0618]: expected function, found `Empty2`
+  --> $DIR/empty-struct-unit-expr.rs:25:14
+   |
+25 |     let e2 = Empty2(); //~ ERROR expected function, found `Empty2`
+   |              ^^^^^^^^
+   |
+note: defined here
+  --> $DIR/empty-struct-unit-expr.rs:18:1
+   |
+18 | struct Empty2;
+   | ^^^^^^^^^^^^^^
+
+error[E0618]: expected function, found `E::Empty4`
+  --> $DIR/empty-struct-unit-expr.rs:26:14
+   |
+26 |     let e4 = E::Empty4();
+   |              ^^^^^^^^^^^
+   |
+   = help: did you mean to write `E::Empty4`?
+note: defined here
+  --> $DIR/empty-struct-unit-expr.rs:21:5
+   |
+21 |     Empty4
+   |     ^^^^^^
+
+error[E0618]: expected function, found `empty_struct::XEmpty2`
+  --> $DIR/empty-struct-unit-expr.rs:29:15
+   |
+29 |     let xe2 = XEmpty2(); //~ ERROR expected function, found `empty_struct::XEmpty2`
+   |               ^^^^^^^^^
+
+error[E0618]: expected function, found `XE::XEmpty4`
+  --> $DIR/empty-struct-unit-expr.rs:30:15
+   |
+30 |     let xe4 = XE::XEmpty4();
+   |               ^^^^^^^^^^^^^
+   |
+   = help: did you mean to write `XE::XEmpty4`?
+
+error: aborting due to 4 previous errors
+