mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-25 04:27:52 +00:00
18 lines
515 B
Text
18 lines
515 B
Text
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
|
|
|
|
|
= note: expected reference `&dyn Db`
|
|
found type `{integer}`
|
|
note: method defined here
|
|
--> tests/compile-fail/span-tracked-getter.rs:18:5
|
|
|
|
|
16 | #[salsa::tracked]
|
|
| -----------------
|
|
17 | pub struct MyTracked<'db> {
|
|
18 | field: u32,
|
|
| ^^^^^
|