We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f1d6c4 commit c2ce7ddCopy full SHA for c2ce7dd
src/librustc_error_codes/error_codes/E0116.md
@@ -1,11 +1,15 @@
1
-You can only define an inherent implementation for a type in the same crate
2
-where the type was defined. For example, an `impl` block as below is not allowed
3
-since `Vec` is defined in the standard library:
+An inherent implementation was defined for a type outside the current crate.
+
+Erroneous code example:
4
5
```compile_fail,E0116
6
impl Vec<u8> { } // error
7
```
8
9
+You can only define an inherent implementation for a type in the same crate
10
+where the type was defined. For example, an `impl` block as above is not allowed
11
+since `Vec` is defined in the standard library.
12
13
To fix this problem, you can do either of these things:
14
15
- define a trait that has the desired associated functions/types/constants and
0 commit comments