Skip to content

Commit 47e2687

Browse files
authored
Rollup merge of rust-lang#71461 - GuillaumeGomez:improve-e0567, r=Dylan-DPC
Improve E0567 explanation r? @Dylan-DPC
2 parents 98cadb2 + cffd4b6 commit 47e2687

File tree

1 file changed

+2
-4
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+2
-4
lines changed

src/librustc_error_codes/error_codes/E0567.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ Erroneous code example:
66
#![feature(optin_builtin_traits)]
77
88
auto trait Generic<T> {} // error!
9-
10-
fn main() {}
9+
# fn main() {}
1110
```
1211

1312
Since an auto trait is implemented on all existing types, the
@@ -20,6 +19,5 @@ To fix this issue, just remove the generics:
2019
#![feature(optin_builtin_traits)]
2120
2221
auto trait Generic {} // ok!
23-
24-
fn main() {}
22+
# fn main() {}
2523
```

0 commit comments

Comments
 (0)