We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc4bf4 commit 3f9d834Copy full SHA for 3f9d834
src/librustc/error_codes.rs
@@ -259,7 +259,7 @@ trait Foo {
259
This is similar to the second sub-error, but subtler. It happens in situations
260
like the following:
261
262
-```
+```compile_fail,E0038
263
trait Super<A: ?Sized> {}
264
265
trait Trait: Super<Self> {
@@ -270,6 +270,10 @@ struct Foo;
270
impl Super<Foo> for Foo{}
271
272
impl Trait for Foo {}
273
+
274
+fn main() {
275
+ let x: Box<dyn Trait>;
276
+}
277
```
278
279
Here, the supertrait might have methods as follows:
0 commit comments