Skip to content

Commit

Permalink
Rollup merge of #73610 - GuillaumeGomez:cleanup-e0699, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Clean up E0699 explanation

r? @Dylan-DPC
  • Loading branch information
Dylan-DPC committed Jun 23, 2020
2 parents b3d99cb + c474317 commit e979392
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/librustc_error_codes/error_codes/E0699.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
A method was called on a raw pointer whose inner type wasn't completely known.

For example, you may have done something like:
Erroneous code example:

```compile_fail
```compile_fail,edition2018,E0699
# #![deny(warnings)]
# fn main() {
let foo = &1;
let bar = foo as *const _;
if bar.is_null() {
// ...
}
# }
```

Here, the type of `bar` isn't known; it could be a pointer to anything. Instead,
Expand Down

0 comments on commit e979392

Please sign in to comment.