]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
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)
commita68864b68859e5848865bd392ce6d892b16f5cdd
treef1c402a267a47395f96161250da02124d1ebf4bf
parent5957f208a5def92a5ee85e71b01f75904c1ba4ff
parent6845e22bbabce5631c388c52eb367168ce9b14ce
Auto merge of #79734 - ethanboxx:inferred_const_note, r=varkor

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`