review comments
This commit is contained in:
parent
28b518474e
commit
4a79633ad2
2 changed files with 5 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
|
|||
--> $DIR/arbitrary-self-types-not-object-safe.rs:31:32
|
||||
|
|
||||
LL | fn foo(self: &Rc<Self>) -> usize;
|
||||
| --- method `foo`'s receiver cannot be dispatched on
|
||||
| --- method `foo`'s `self` parameter cannot be dispatched on
|
||||
...
|
||||
LL | let x = Rc::new(5usize) as Rc<dyn Foo>;
|
||||
| ^^^^^^^^^^^ the trait `Foo` cannot be made into an object
|
||||
|
|
@ -11,7 +11,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
|
|||
--> $DIR/arbitrary-self-types-not-object-safe.rs:31:13
|
||||
|
|
||||
LL | fn foo(self: &Rc<Self>) -> usize;
|
||||
| --- method `foo`'s receiver cannot be dispatched on
|
||||
| --- method `foo`'s `self` parameter cannot be dispatched on
|
||||
...
|
||||
LL | let x = Rc::new(5usize) as Rc<dyn Foo>;
|
||||
| ^^^^^^^^^^^^^^^ the trait `Foo` cannot be made into an object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue