# Impl type parameter aliases

**URL:** <https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403>\
**Category:** language design\
**Created:** [February 9, 2019, 9:26pm UTC](https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403 "2019-02-09T21:26:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![scottmcm](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/scottmcm/32/2355_2.png) [@scottmcm](https://internals.rust-lang.org/u/scottmcm)\
**Post date:** [February 10, 2019, 6:04am UTC](https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403/2 "2019-02-10T06:04:00Z")

</div>

+1, would be particularly handy now that we have impl header lifetime elision.

**EDIT**

To elaborate, IHLE allowed us to do this:

```diff
- impl<'a> Add<u32> for &'a u32 {
+ impl Add<u32> for &u32 {
      type Output = u32;
      fn add(self, rhs: u32) -> u32 { *self + rhs }
  }

```

With parameter aliases, we’d be able to do

```diff
- impl<'a> Add<&'a u32> for u32 {
+ impl Add<RHS @ &u32> for u32 {
      type Output = u32;
- fn add(self, rhs: &'a u32) -> u32 { self + *rhs }
+ fn add(self, rhs: RHS) -> u32 { self + *rhs }
  }

```

Which is in some ways even nicer, since it removes more uses of the lifetime than the first change did.

---

_[View the full topic](https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403)._
