salsa/salsa-2022-tests/tests/compile-fail/tracked_impl_incompatibles.stderr

54 lines
1.6 KiB
Text
Raw Normal View History

error: `return_ref` option not allowed here
--> tests/compile-fail/tracked_impl_incompatibles.rs:10:18
|
10 | #[salsa::tracked(return_ref)]
| ^^^^^^^^^^
error: `specify` option not allowed here
--> tests/compile-fail/tracked_impl_incompatibles.rs:16:18
|
16 | #[salsa::tracked(specify)]
| ^^^^^^^
error: `no_eq` option not allowed here
--> tests/compile-fail/tracked_impl_incompatibles.rs:23:18
|
23 | #[salsa::tracked(no_eq)]
| ^^^^^
error: `data` option not allowed here
--> tests/compile-fail/tracked_impl_incompatibles.rs:30:18
|
30 | #[salsa::tracked(data = Data)]
| ^^^^
error: `db` option not allowed here
--> tests/compile-fail/tracked_impl_incompatibles.rs:37:18
|
37 | #[salsa::tracked(db = Db)]
| ^^
error: unrecognized option `recover_fn`
--> tests/compile-fail/tracked_impl_incompatibles.rs:44:18
|
44 | #[salsa::tracked(recover_fn = recover)]
| ^^^^^^^^^^
error: `lru` option not allowed here
--> tests/compile-fail/tracked_impl_incompatibles.rs:51:18
|
51 | #[salsa::tracked(lru = 32)]
| ^^^
error: `constructor` option not allowed here
--> tests/compile-fail/tracked_impl_incompatibles.rs:58:18
|
58 | #[salsa::tracked(constructor = Constructor)]
| ^^^^^^^^^^^
error: #[salsa::tracked] can only be applied to salsa structs
--> tests/compile-fail/tracked_impl_incompatibles.rs:65:32
|
65 | impl std::default::Default for [MyTracked; 12] {
| ^^^^^^^^^^^^^^^