We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbcce10 commit b932349Copy full SHA for b932349
tests/ui/issues/issue-19380.stderr
@@ -34,6 +34,7 @@ LL | trait Qiz {
34
| --- this trait cannot be made into an object...
35
LL | fn qiz();
36
| ^^^ ...because associated function `qiz` has no `self` parameter
37
+ = help: only type `Foo` implements the trait, consider using it directly instead
38
= note: required for the cast from `&Foo` to `&'static (dyn Qiz + 'static)`
39
help: consider turning `qiz` into a method by giving it a `&self` argument
40
|
0 commit comments