Skip to content

Instantly share code, notes, and snippets.

@adam-singer
Created February 13, 2024 22:22
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/49faf251ca251ff7fe40f832105cd34b to your computer and use it in GitHub Desktop.
Save adam-singer/49faf251ca251ff7fe40f832105cd34b to your computer and use it in GitHub Desktop.
Compiling nativelink-util v0.2.0 (/Users/adam/workspace/nativelink-2/nativelink-util)
error[E0277]: the size for values of type `Self` cannot be known at compilation time
--> nativelink-util/src/health_utils.rs:122:30
|
122 | HealthStatus::new_ok(self, "ok".into())
| -------------------- ^^^^ doesn't have a size known at compile-time
| |
| required by a bound introduced by this call
|
note: required by a bound in `HealthStatus::new_ok`
--> nativelink-util/src/health_utils.rs:64:31
|
64 | pub fn new_ok(component: &impl HealthStatusIndicator, message: Cow<'static, str>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `HealthStatus::new_ok`
help: consider relaxing the implicit `Sized` restriction
|
64 | pub fn new_ok(component: &impl HealthStatusIndicator + ?Sized, message: Cow<'static, str>) -> Self {
| ++++++++
error[E0277]: the size for values of type `Self` cannot be known at compilation time
--> nativelink-util/src/store_trait.rs:223:30
|
223 | HealthStatus::new_ok(self.get_ref(), "Successfully store health check".into())
| -------------------- ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
| |
| required by a bound introduced by this call
|
note: required by a bound in `HealthStatus::new_ok`
--> nativelink-util/src/health_utils.rs:64:31
|
64 | pub fn new_ok(component: &impl HealthStatusIndicator, message: Cow<'static, str>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `HealthStatus::new_ok`
help: consider relaxing the implicit `Sized` restriction
--> nativelink-util/src/health_utils.rs:64:57
|
64 | pub fn new_ok(component: &impl HealthStatusIndicator + ?Sized, message: Cow<'static, str>) -> Self {
| ++++++++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment