mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-25 04:27:52 +00:00
18 lines
560 B
Text
18 lines
560 B
Text
error[E0308]: mismatched types
|
|
--> tests/compile-fail/span-input-setter.rs:26:21
|
|
|
|
|
26 | input.set_field(22);
|
|
| --------- ^^ expected `&mut dyn Db`, found integer
|
|
| |
|
|
| arguments to this method are incorrect
|
|
|
|
|
= note: expected mutable reference `&mut (dyn Db + 'static)`
|
|
found type `{integer}`
|
|
note: method defined here
|
|
--> tests/compile-fail/span-input-setter.rs:18:5
|
|
|
|
|
16 | #[salsa::input]
|
|
| ---------------
|
|
17 | pub struct MyInput {
|
|
18 | field: u32,
|
|
| ^^^^^
|