2024-05-24 01:16:30 +00:00
|
|
|
error[E0277]: the trait bound `MyInterned<'_>: TrackedStructInDb<dyn Db>` is not satisfied
|
|
|
|
--> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-interned.rs:20:1
|
2022-09-18 01:58:17 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
20 | #[salsa::tracked(jar = Jar, specify)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb<dyn Db>` is not implemented for `MyInterned<'_>`
|
2022-09-18 01:58:17 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
= help: the trait `TrackedStructInDb<DB>` is implemented for `MyTracked<'db>`
|
2022-08-26 23:51:35 +00:00
|
|
|
note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record`
|
2024-06-18 07:40:21 +00:00
|
|
|
--> src/function/specify.rs
|
2022-09-18 01:58:17 +00:00
|
|
|
|
|
2024-04-27 14:33:54 +00:00
|
|
|
| pub fn specify_and_record<'db>(&'db self, db: &'db DynDb<'db, C>, key: Id, value: C::Value<'db>)
|
2023-10-08 19:47:01 +00:00
|
|
|
| ------------------ required by a bound in this associated function
|
|
|
|
| where
|
2024-04-27 14:33:54 +00:00
|
|
|
| C::Input<'db>: TrackedStructInDb<DynDb<'db, C>>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record`
|
2022-11-29 04:36:03 +00:00
|
|
|
= note: this error originates in the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)
|