# Allow 'const \_'?

**URL:** <https://internals.rust-lang.org/t/allow-const/8231>\
**Category:** language design\
**Created:** [August 17, 2018, 7:23am UTC](https://internals.rust-lang.org/t/allow-const/8231 "2018-08-17T07:23:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Centril](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/centril/32/3334_2.png) [@Centril](https://internals.rust-lang.org/u/Centril)\
**Post date:** [August 19, 2018, 7:48am UTC](https://internals.rust-lang.org/t/allow-const/8231/8 "2018-08-19T07:48:46Z")

</div>

I don’t mind this idea.

However, in today’s Rust, `_` is permitted in two different contexts with two different meanings:

1. In type contexts it means “please infer the type”.
2. In patterns `_` means “I don’t care / match anything”.

If we permit `const _`, then that makes for another 3rd context, which is quite ad-hoc. If instead we could bring `const` closer to `let` bindings, then we could support `const $pat` and things such as:

```rust
const (FOO, BAR): (usize, usize) = (1, 2);

```

In that case, `const _` falls out naturally because `_` is a pattern.

---

_[View the full topic](https://internals.rust-lang.org/t/allow-const/8231)._
