summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/enum-discr-type-err.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/enum-discr-type-err.stderr')
-rw-r--r--tests/ui/consts/enum-discr-type-err.stderr31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/ui/consts/enum-discr-type-err.stderr b/tests/ui/consts/enum-discr-type-err.stderr
new file mode 100644
index 000000000..2f97582be
--- /dev/null
+++ b/tests/ui/consts/enum-discr-type-err.stderr
@@ -0,0 +1,31 @@
+error[E0308]: mismatched types
+ --> $DIR/enum-discr-type-err.rs:18:21
+ |
+LL | $( $v = $s::V, )*
+ | ^^^^^ expected `isize`, found `i32`
+...
+LL | / mac! {
+LL | | A = F,
+LL | | B = T,
+LL | | }
+ | |_- in this macro invocation
+ |
+ = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0308]: mismatched types
+ --> $DIR/enum-discr-type-err.rs:18:21
+ |
+LL | $( $v = $s::V, )*
+ | ^^^^^ expected `isize`, found `i32`
+...
+LL | / mac! {
+LL | | A = F,
+LL | | B = T,
+LL | | }
+ | |_- in this macro invocation
+ |
+ = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.