File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
trunk/src/librustc_typeck Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: edf6132be88fa2a51176f84d5fbee45046880717
2
+ refs/heads/master: a481c4ecdc95bf9247f262334f288ff78001ff6c
3
3
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
4
4
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -1244,6 +1244,26 @@ impl Bytes { ... } // error, same as above
1244
1244
```
1245
1245
"## ,
1246
1246
1247
+ E0117 : r##"
1248
+ You tried to implement a trait on a type which isn't defined in your crate.
1249
+ Erroneous code example:
1250
+
1251
+ ```
1252
+ impl Drop for u32 {}
1253
+ ```
1254
+
1255
+ The type on which you want to implement the trait has to be defined in
1256
+ your crate. Example:
1257
+
1258
+ ```
1259
+ pub struct Foo; // you define your type in your crate
1260
+
1261
+ impl Drop for Foo { // and you can implement the trait on it!
1262
+ // code of trait implementation here
1263
+ }
1264
+ ```
1265
+ "## ,
1266
+
1247
1267
E0121 : r##"
1248
1268
In order to be consistent with Rust's lack of global type inference, type
1249
1269
placeholders are disallowed by design in item signatures.
@@ -1826,7 +1846,6 @@ register_diagnostics! {
1826
1846
E0102 ,
1827
1847
E0103 ,
1828
1848
E0104 ,
1829
- E0117 ,
1830
1849
E0118 ,
1831
1850
E0119 ,
1832
1851
E0120 ,
You can’t perform that action at this time.
0 commit comments