We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f7eb62 commit 32103b1Copy full SHA for 32103b1
src/librustc_error_codes/error_codes/E0226.md
@@ -1,8 +1,8 @@
1
-Only a single explicit lifetime bound is permitted on trait objects.
+More than one explicit lifetime bound was used on a trait object.
2
3
Example of erroneous code:
4
5
-```compile_fail
+```compile_fail,E0226
6
trait Foo {}
7
8
type T<'a, 'b> = dyn Foo + 'a + 'b; // error: Trait object `arg` has two
@@ -11,6 +11,7 @@ type T<'a, 'b> = dyn Foo + 'a + 'b; // error: Trait object `arg` has two
11
12
Here `T` is a trait object with two explicit lifetime bounds, 'a and 'b.
13
14
+Only a single explicit lifetime bound is permitted on trait objects.
15
To fix this error, consider removing one of the lifetime bounds:
16
17
```
0 commit comments