Skip to content

Instantly share code, notes, and snippets.

@adam-singer
Created February 13, 2024 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-singer/c75e1d177dd105307b68230bd2bafc30 to your computer and use it in GitHub Desktop.
Save adam-singer/c75e1d177dd105307b68230bd2bafc30 to your computer and use it in GitHub Desktop.
error[E0782]: trait objects must include the `dyn` keyword
--> nativelink-util/src/health_utils.rs:64:31
|
64 | pub fn new_ok(component: &HealthStatusIndicator, message: Cow<'static, str>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^
|
help: add `dyn` keyword before this trait
|
64 | pub fn new_ok(component: &dyn HealthStatusIndicator, message: Cow<'static, str>) -> Self {
| +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment