salsa/tests/compile-fail/interned_struct_incompatibles.stderr

43 lines
1.2 KiB
Text
Raw Normal View History

error: `return_ref` option not allowed here
2024-07-19 11:29:18 +00:00
--> tests/compile-fail/interned_struct_incompatibles.rs:1:19
|
2024-07-19 11:29:18 +00:00
1 | #[salsa::interned(return_ref)]
| ^^^^^^^^^^
error: `specify` option not allowed here
2024-07-19 11:29:18 +00:00
--> tests/compile-fail/interned_struct_incompatibles.rs:6:19
|
6 | #[salsa::interned(specify)]
| ^^^^^^^
error: `no_eq` option not allowed here
2024-07-19 11:29:18 +00:00
--> tests/compile-fail/interned_struct_incompatibles.rs:11:19
|
2024-07-19 11:29:18 +00:00
11 | #[salsa::interned(no_eq)]
| ^^^^^
error: `db` option not allowed here
2024-07-19 11:29:18 +00:00
--> tests/compile-fail/interned_struct_incompatibles.rs:16:19
|
2024-07-19 11:29:18 +00:00
16 | #[salsa::interned(db = Db)]
| ^^
error: unrecognized option `recover_fn`
2024-07-19 11:29:18 +00:00
--> tests/compile-fail/interned_struct_incompatibles.rs:21:19
|
2024-07-19 11:29:18 +00:00
21 | #[salsa::interned(recover_fn = recover)]
| ^^^^^^^^^^
error: `lru` option not allowed here
2024-07-19 11:29:18 +00:00
--> tests/compile-fail/interned_struct_incompatibles.rs:26:19
|
2024-07-19 11:29:18 +00:00
26 | #[salsa::interned(lru = 12)]
| ^^^
2024-07-19 11:29:18 +00:00
error: `#[id]` cannot be used with `#[salsa::interned]`
--> tests/compile-fail/interned_struct_incompatibles.rs:33:5
|
33 | / #[id]
34 | | field: u32,
| |______________^