title: Is there a way to create an alias of an enum value?
body: <p>Is there a way to do something like this?</p>
  
  <pre><code>enum MyType {
      Left,
      Right,
  
      #[cfg(universe = "normal")]
      Port = Left,
      #[cfg(universe = "normal")]
      Starboard = Right,
  
      #[cfg(universe = "mirror")]
      Port = Right,
      #[cfg(universe = "mirror")]
      Starboard = Left,
  
  }
  </code></pre>
  
  <p>If you actually try it, you get this error (I had to add <code>MyType::</code>):</p>
  
  <pre class="lang-none prettyprint-override"><code>error[E0080]: constant evaluation error
   --&gt; &lt;anon&gt;:9:12
    |
  9 |     Port = MyType::Left,
    |            ^^^^^^^^^^^^ unimplemented constant expression: enum variants
  </code></pre>
  
  <p><a href="https://github.com/rust-lang/rust/blob/93e70ecb7fbe05caa74dfb2bf3c29315edc2b3e6/src/librustc_const_eval/eval.rs#L681" rel="nofollow noreferrer">Here</a> is where that error is triggered.</p>