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 1e1f25e commit 5808971Copy full SHA for 5808971
src/librustc/error_codes.rs
@@ -259,8 +259,8 @@ 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
263
-trait Super<A> {}
+```
+trait Super<A: ?Sized> {}
264
265
trait Trait: Super<Self> {
266
}
@@ -275,8 +275,8 @@ impl Trait for Foo {}
275
Here, the supertrait might have methods as follows:
276
277
```
278
-trait Super<A> {
279
- fn get_a(&self) -> A; // note that this is object safe!
+trait Super<A: ?Sized> {
+ fn get_a(&self) -> &A; // note that this is object safe!
280
281
282
0 commit comments