about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-06-22 11:50:55 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-06-22 11:50:55 +0200
commitc474317747b6edfbbb6835ad371ebdf0c818932f (patch)
tree2da79e8245666e993e963218fd91bdd662fba9a1 /src/librustc_error_codes/error_codes
parent228a0ed7b0cef2fbfeb781acf6c23015ccc40ba2 (diff)
downloadrust-c474317747b6edfbbb6835ad371ebdf0c818932f.tar.gz
rust-c474317747b6edfbbb6835ad371ebdf0c818932f.zip
Clean up E0699 explanation
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0699.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0699.md b/src/librustc_error_codes/error_codes/E0699.md
index f90fd3b5624..454d2507e5e 100644
--- a/src/librustc_error_codes/error_codes/E0699.md
+++ b/src/librustc_error_codes/error_codes/E0699.md
@@ -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,