We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3d99cb + c474317 commit e979392Copy full SHA for e979392
src/librustc_error_codes/error_codes/E0699.md
@@ -1,14 +1,16 @@
1
A method was called on a raw pointer whose inner type wasn't completely known.
2
3
-For example, you may have done something like:
+Erroneous code example:
4
5
-```compile_fail
+```compile_fail,edition2018,E0699
6
# #![deny(warnings)]
7
+# fn main() {
8
let foo = &1;
9
let bar = foo as *const _;
10
if bar.is_null() {
11
// ...
12
}
13
+# }
14
```
15
16
Here, the type of `bar` isn't known; it could be a pointer to anything. Instead,
0 commit comments