]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0715 explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 1 Jul 2020 12:13:41 +0000 (14:13 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 1 Jul 2020 12:13:41 +0000 (14:13 +0200)
src/librustc_error_codes/error_codes/E0715.md

index 8f0022d9425471de4ef3357962e6f5620bdd9865..b27702b3c26e27c473e73193b8b07979ce987ad1 100644 (file)
@@ -15,8 +15,7 @@ struct OverrideConst;
 impl Marker for OverrideConst { // error!
     const N: usize = 1;
 }
-
-fn main() {}
+# fn main() {}
 ```
 
 Because marker traits are allowed to have multiple implementations for the same