File: span-input-setter.stderr

package info (click to toggle)
rust-salsa 0.23.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,424 kB
  • sloc: sh: 12; makefile: 2; javascript: 1
file content (22 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0308]: mismatched types
  --> tests/compile-fail/span-input-setter.rs:10:21
   |
10 |     input.set_field(22);
   |           --------- ^^ expected `&mut _`, found integer
   |           |
   |           arguments to this method are incorrect
   |
   = note: expected mutable reference `&mut _`
                           found type `{integer}`
note: method defined here
  --> tests/compile-fail/span-input-setter.rs:3:5
   |
1  | #[salsa::input]
   | ---------------
2  | pub struct MyInput {
3  |     field: u32,
   |     ^^^^^
help: consider mutably borrowing here
   |
10 |     input.set_field(&mut 22);
   |                     ++++