Skip to content

Commit bbef502

Browse files
---
yaml --- r: 235033 b: refs/heads/stable c: a481c4e h: refs/heads/master i: 235031: 3a8eb0a v: v3
1 parent 1186392 commit bbef502

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: edf6132be88fa2a51176f84d5fbee45046880717
32+
refs/heads/stable: a481c4ecdc95bf9247f262334f288ff78001ff6c
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_typeck/diagnostics.rs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,26 @@ impl Bytes { ... } // error, same as above
12441244
```
12451245
"##,
12461246

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+
12471267
E0121: r##"
12481268
In order to be consistent with Rust's lack of global type inference, type
12491269
placeholders are disallowed by design in item signatures.
@@ -1826,7 +1846,6 @@ register_diagnostics! {
18261846
E0102,
18271847
E0103,
18281848
E0104,
1829-
E0117,
18301849
E0118,
18311850
E0119,
18321851
E0120,

0 commit comments

Comments
 (0)