File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2215,6 +2215,23 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
2215
2215
-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md).
2216
2216
"## ,
2217
2217
2218
+ E0391 : r##"
2219
+ This error indicates that some types or traits depend on each other
2220
+ and therefore cannot be constructed.
2221
+
2222
+ The following example contains a circular dependency between two traits:
2223
+
2224
+ ```
2225
+ trait FirstTrait : SecondTrait {
2226
+
2227
+ }
2228
+
2229
+ trait SecondTrait : FirstTrait {
2230
+
2231
+ }
2232
+ ```
2233
+ "## ,
2234
+
2218
2235
E0392 : r##"
2219
2236
This error indicates that a type or lifetime parameter has been declared
2220
2237
but not actually used. Here is an example that demonstrates the error:
@@ -2370,7 +2387,6 @@ register_diagnostics! {
2370
2387
// between structures with the same definition
2371
2388
E0390 , // only a single inherent implementation marked with
2372
2389
// `#[lang = \"{}\"]` is allowed for the `{}` primitive
2373
- E0391 , // unsupported cyclic reference between types/traits detected
2374
2390
E0393 , // the type parameter `{}` must be explicitly specified in an object
2375
2391
// type because its default value `{}` references the type `Self`"
2376
2392
E0399 , // trait items need to be implemented because the associated
You can’t perform that action at this time.
0 commit comments