salsa/tests/compile-fail/accumulator_incompatibles.stderr

48 lines
1.4 KiB
Text
Raw Normal View History

error: `return_ref` option not allowed here
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:1:22
|
2024-07-19 11:08:11 +00:00
1 | #[salsa::accumulator(return_ref)]
| ^^^^^^^^^^
error: `specify` option not allowed here
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:4:22
|
2024-07-19 11:08:11 +00:00
4 | #[salsa::accumulator(specify)]
| ^^^^^^^
error: `no_eq` option not allowed here
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:7:22
|
7 | #[salsa::accumulator(no_eq)]
| ^^^^^
error: `data` option not allowed here
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:10:22
|
2024-07-19 11:08:11 +00:00
10 | #[salsa::accumulator(data = MyAcc)]
| ^^^^
error: `db` option not allowed here
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:13:22
|
2024-07-19 11:08:11 +00:00
13 | #[salsa::accumulator(db = Db)]
| ^^
error: unrecognized option `recover_fn`
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:16:22
|
2024-07-19 11:08:11 +00:00
16 | #[salsa::accumulator(recover_fn = recover)]
| ^^^^^^^^^^
error: `lru` option not allowed here
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:19:22
|
2024-07-19 11:08:11 +00:00
19 | #[salsa::accumulator(lru = 12)]
| ^^^
error: `constructor` option not allowed here
2024-07-19 11:08:11 +00:00
--> tests/compile-fail/accumulator_incompatibles.rs:22:22
|
2024-07-19 11:08:11 +00:00
22 | #[salsa::accumulator(constructor = Constructor)]
| ^^^^^^^^^^^