From d358b5f1d8daf6aaefc6f924feca8bc2e800f01c Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Sun, 9 Jun 2019 05:56:41 +0200 Subject: [PATCH] type-alias-enum-variants-panic: rename to something descriptive. --- ... => incorrect-variant-form-through-alias-caught.rs} | 0 ...incorrect-variant-form-through-alias-caught.stderr} | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/test/ui/type-alias-enum-variants/{type-alias-enum-variants-panic.rs => incorrect-variant-form-through-alias-caught.rs} (100%) rename src/test/ui/type-alias-enum-variants/{type-alias-enum-variants-panic.stderr => incorrect-variant-form-through-alias-caught.stderr} (80%) diff --git a/src/test/ui/type-alias-enum-variants/type-alias-enum-variants-panic.rs b/src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/type-alias-enum-variants-panic.rs rename to src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.rs diff --git a/src/test/ui/type-alias-enum-variants/type-alias-enum-variants-panic.stderr b/src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr similarity index 80% rename from src/test/ui/type-alias-enum-variants/type-alias-enum-variants-panic.stderr rename to src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr index fcc13c0360d..1ee00a0d22d 100644 --- a/src/test/ui/type-alias-enum-variants/type-alias-enum-variants-panic.stderr +++ b/src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr @@ -1,23 +1,23 @@ error[E0533]: expected unit struct/variant or constant, found struct variant `::Braced` - --> $DIR/type-alias-enum-variants-panic.rs:12:5 + --> $DIR/incorrect-variant-form-through-alias-caught.rs:12:5 | LL | Alias::Braced; | ^^^^^^^^^^^^^ error[E0533]: expected unit struct/variant or constant, found struct variant `::Braced` - --> $DIR/type-alias-enum-variants-panic.rs:14:9 + --> $DIR/incorrect-variant-form-through-alias-caught.rs:14:9 | LL | let Alias::Braced = panic!(); | ^^^^^^^^^^^^^ error[E0164]: expected tuple struct/variant, found struct variant `::Braced` - --> $DIR/type-alias-enum-variants-panic.rs:16:9 + --> $DIR/incorrect-variant-form-through-alias-caught.rs:16:9 | LL | let Alias::Braced(..) = panic!(); | ^^^^^^^^^^^^^^^^^ not a tuple variant or struct error[E0618]: expected function, found enum variant `::Unit` - --> $DIR/type-alias-enum-variants-panic.rs:19:5 + --> $DIR/incorrect-variant-form-through-alias-caught.rs:19:5 | LL | enum Enum { Braced {}, Unit, Tuple() } | ---- `::Unit` defined here @@ -32,7 +32,7 @@ LL | ::Unit; | ^^^^^^^^^^^^^ error[E0164]: expected tuple struct/variant, found unit variant `::Unit` - --> $DIR/type-alias-enum-variants-panic.rs:21:9 + --> $DIR/incorrect-variant-form-through-alias-caught.rs:21:9 | LL | let Alias::Unit() = panic!(); | ^^^^^^^^^^^^^ not a tuple variant or struct