mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 20:20:26 +00:00
16 lines
1.1 KiB
Text
16 lines
1.1 KiB
Text
error[E0277]: the trait bound `MyInput: TrackedStructInDb` is not satisfied
|
|
--> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-input.rs:15:1
|
|
|
|
|
15 | #[salsa::tracked(specify)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb` is not implemented for `MyInput`
|
|
|
|
|
= help: the trait `TrackedStructInDb` is implemented for `MyTracked<'_>`
|
|
note: required by a bound in `salsa::function::specify::<impl salsa::plumbing::function::IngredientImpl<C>>::specify_and_record`
|
|
--> src/function/specify.rs
|
|
|
|
|
| pub fn specify_and_record<'db>(&'db self, db: &'db C::DbView, key: Id, value: C::Output<'db>)
|
|
| ------------------ required by a bound in this associated function
|
|
| where
|
|
| C::Input<'db>: TrackedStructInDb,
|
|
| ^^^^^^^^^^^^^^^^^ required by this bound in `salsa::function::specify::<impl IngredientImpl<C>>::specify_and_record`
|
|
= note: this error originates in the macro `salsa::plumbing::setup_tracked_fn` which comes from the expansion of the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)
|