salsa/salsa-2022-tests/tests/compile-fail/get-set-on-private-field.stderr

17 lines
566 B
Text

error[E0624]: method `field` is private
--> tests/compile-fail/get-set-on-private-field.rs:29:11
|
7 | #[salsa::input(jar = Jar)]
| -------------------------- private method defined here
...
29 | input.field(&db);
| ^^^^^ private method
error[E0624]: method `set_field` is private
--> tests/compile-fail/get-set-on-private-field.rs:30:11
|
7 | #[salsa::input(jar = Jar)]
| -------------------------- private method defined here
...
30 | input.set_field(&mut db).to(23);
| ^^^^^^^^^ private method