Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clean up E0699 explanation #73610

Merged
merged 1 commit into from
Jun 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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