We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2ce7dd commit 1e5450dCopy full SHA for 1e5450d
src/librustc_error_codes/error_codes/E0117.md
@@ -1,3 +1,11 @@
1
+The `Drop` trait was implemented on a non-struct type.
2
+
3
+Erroneous code example:
4
5
+```compile_fail,E0117
6
+impl Drop for u32 {}
7
+```
8
9
This error indicates a violation of one of Rust's orphan rules for trait
10
implementations. The rule prohibits any implementation of a foreign trait (a
11
trait defined in another crate) where
@@ -6,12 +14,6 @@ trait defined in another crate) where
14
- all of the parameters being passed to the trait (if there are any) are also
15
foreign.
16
-Here's one example of this error:
-
-```compile_fail,E0117
12
-impl Drop for u32 {}
13
-```
17
To avoid this kind of error, ensure that at least one local type is referenced
18
by the `impl`:
19
0 commit comments