salsa/tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-input.stderr

17 lines
1.1 KiB
Text
Raw Normal View History

2024-07-19 12:05:39 +00:00
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
|
2024-07-19 12:05:39 +00:00
15 | #[salsa::tracked(specify)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb` is not implemented for `MyInput`
|
2024-07-19 12:05:39 +00:00
= 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`
2024-06-18 07:40:21 +00:00
--> src/function/specify.rs
|
2024-07-19 12:05:39 +00:00
| 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
2024-07-19 12:05:39 +00:00
| 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)