Skip to content

Commit cffd4b6

Browse files
Improve E0567 explanation
1 parent 2dc5b60 commit cffd4b6

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)