]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #79734 - ethanboxx:inferred_const_note, r=varkor
authorbors <bors@rust-lang.org>
Sun, 6 Dec 2020 08:08:05 +0000 (08:08 +0000)
committerbors <bors@rust-lang.org>
Sun, 6 Dec 2020 08:08:05 +0000 (08:08 +0000)
Const parameters can not be inferred with `_` help note

This should close: #79557

# Example output
```
error[E0747]: type provided when a constant was expected
 --> inferred_const_note.rs:6:19
  |
6 |     let a = foo::<_, 2>([0, 1, 2]);
  |                   ^
  |
  = help: Const parameters can not be inferred with `_`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0747`.
```

r? `@lcnr`


Trivial merge