Fix trybuild ui test to adapt the change of rustc error message

This commit is contained in:
Yoshitomo Nakanishi 2023-04-22 11:16:51 +02:00
parent 5718229882
commit cbafc307fc

View file

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