review comments

This commit is contained in:
Esteban Küber 2019-09-03 08:05:54 -07:00
parent 28b518474e
commit 4a79633ad2
2 changed files with 5 additions and 3 deletions

View file

@ -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