2024-04-04 10:21:33 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> tests/compile-fail/span-tracked-getter.rs:24:13
|
|
|
|
|
|
|
|
|
24 | x.field(22);
|
|
|
|
| ----- ^^ expected `&dyn Db`, found integer
|
|
|
|
| |
|
|
|
|
| arguments to this method are incorrect
|
|
|
|
|
|
2024-07-06 12:15:27 +00:00
|
|
|
= note: expected reference `&(dyn Db + 'static)`
|
2024-04-04 10:21:33 +00:00
|
|
|
found type `{integer}`
|
|
|
|
note: method defined here
|
|
|
|
--> tests/compile-fail/span-tracked-getter.rs:18:5
|
|
|
|
|
|
|
|
|
16 | #[salsa::tracked]
|
|
|
|
| -----------------
|
2024-05-24 01:16:30 +00:00
|
|
|
17 | pub struct MyTracked<'db> {
|
2024-04-04 10:21:33 +00:00
|
|
|
18 | field: u32,
|
|
|
|
| ^^^^^
|