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

17 lines
1.1 KiB
Text
Raw Normal View History

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
|
2024-05-24 01:16:30 +00:00
20 | #[salsa::tracked(jar = Jar, specify)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb<dyn Db>` is not implemented for `MyInterned<'_>`
|
2024-05-24 01:16:30 +00:00
= help: the trait `TrackedStructInDb<DB>` is implemented for `MyTracked<'db>`
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
|
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>)
| ------------------ 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`
= note: this error originates in the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)