You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b420a66
Browse filesBrowse the repository at this point in the historyBrowse files
| ------------- help: consider changing method `get`'s `self` parameter to be `&self`: `&Self`
6
-
...
7
4
LL | fn fetcher() -> Box<dyn Fetcher> {
8
5
| ^^^^^^^^^^^ `Fetcher` is not dyn compatible
9
6
|
10
7
note: for a trait to be dyn compatible it needs to allow building a vtable
11
8
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
| ------------- help: consider changing method `get`'s `self` parameter to be `&self`: `&Self`
24
-
...
25
24
LL | let fetcher = fetcher();
26
25
| ^^^^^^^^^ `Fetcher` is not dyn compatible
27
26
|
28
27
note: for a trait to be dyn compatible it needs to allow building a vtable
29
28
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
| --------------------- help: consider changing method `method`'s `self` parameter to be `&self`: `&Self`
37
-
...
38
35
LL | fn test(x: &dyn Foo) {
39
36
| ^^^^^^^ `Foo` is not dyn compatible
40
37
|
41
38
note: for a trait to be dyn compatible it needs to allow building a vtable
42
39
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
| --------- help: consider changing method `ptr`'s `self` parameter to be `&self`: `&Self`
6
-
...
7
4
LL | Ptr(Box::new(4)) as Ptr<dyn Trait>;
8
5
| ^^^^^ `Trait` is not dyn compatible
9
6
|
10
7
note: for a trait to be dyn compatible it needs to allow building a vtable
11
8
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
| --------- help: consider changing method `foo`'s `self` parameter to be `&self`: `&Self`
6
-
...
7
4
LL | let x = Rc::new(5usize) as Rc<dyn Foo>;
8
5
| ^^^ `Foo` is not dyn compatible
9
6
|
10
7
note: for a trait to be dyn compatible it needs to allow building a vtable
11
8
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
| -- help: consider changing method `method`'s `self` parameter to be `&self`: `&Self`
6
-
...
7
4
LL | fn test(x: &dyn Foo) {
8
5
| ^^^^^^^ `Foo` is not dyn compatible
9
6
|
10
7
note: for a trait to be dyn compatible it needs to allow building a vtable
11
8
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
0 commit comments