about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-08-11 16:23:59 +0900
committerGitHub <noreply@github.com>2020-08-11 16:23:59 +0900
commit532002853d88a7c9f875dc8c401b8b7e019fe10b (patch)
tree5958094674490e4dfd58b77589abc4186f385620 /src/test/rustdoc-ui/coverage/json.rs
parentca462d36ff46fd154da7226926148797ed76dc3d (diff)
parenta7f61bf3bb416f03da478bbe2421946ef9b80379 (diff)
downloadrust-532002853d88a7c9f875dc8c401b8b7e019fe10b.tar.gz
rust-532002853d88a7c9f875dc8c401b8b7e019fe10b.zip
Rollup merge of #75360 - pickfire:patch-4, r=GuillaumeGomez
Add sample fix for E0749

Even though the description is clear but the solution may not be as straightforward.
Adding a suggested fix from documentation side.

r? @GuillaumeGomez

However, this suggestion should be shown in rustc itself for easy fix, the documentation should also reflect on the changes in rustc. Currently,
```
error[E0749]: negative impls cannot have any items
 --> test.rs:6:5
  |
6 |     type Foo = i32; // error!
  |     ^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0749`.
```
rustc should tell the user to remove it.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions