2024-06-18 08:03:53 +00:00
|
|
|
error[E0583]: file not found for module `common`
|
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:5:1
|
|
|
|
|
|
|
|
|
5 | mod common;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: to create the module `common`, create file "$DIR/tests/compile-fail/common.rs" or "$DIR/tests/compile-fail/common/mod.rs"
|
|
|
|
= note: if there is a `mod common` elsewhere in the crate already, import it with `use crate::...` instead
|
|
|
|
|
2022-09-02 12:09:28 +00:00
|
|
|
error: `singleton` option not allowed here
|
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:20:18
|
|
|
|
|
|
|
|
|
20 | #[salsa::tracked(singleton)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `singleton` option not allowed here
|
2024-06-18 08:03:53 +00:00
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:25:18
|
2022-09-02 12:09:28 +00:00
|
|
|
|
|
2024-06-18 08:03:53 +00:00
|
|
|
25 | #[salsa::tracked(singleton)]
|
2022-09-02 12:09:28 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `singleton` option not allowed here
|
2024-06-18 08:03:53 +00:00
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:32:22
|
2022-09-02 12:09:28 +00:00
|
|
|
|
|
2024-06-18 08:03:53 +00:00
|
|
|
32 | #[salsa::accumulator(singleton)]
|
2022-09-02 12:09:28 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2024-06-18 08:03:53 +00:00
|
|
|
error[E0432]: unresolved imports `common::HasLogger`, `common::Logger`
|
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:6:14
|
|
|
|
|
|
|
|
|
6 | use common::{HasLogger, Logger};
|
|
|
|
| ^^^^^^^^^ ^^^^^^ no `Logger` in `common`
|
|
|
|
| |
|
|
|
|
| no `HasLogger` in `common`
|
2024-06-18 07:40:21 +00:00
|
|
|
|
2022-09-02 12:09:28 +00:00
|
|
|
error[E0412]: cannot find type `MyTracked` in this scope
|
2024-06-18 08:03:53 +00:00
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:11:21
|
2022-09-02 12:09:28 +00:00
|
|
|
|
|
2024-06-18 08:03:53 +00:00
|
|
|
11 | struct Jar(MyInput, MyTracked, Integers, create_tracked_structs);
|
2022-09-02 12:09:28 +00:00
|
|
|
| ^^^^^^^^^ not found in this scope
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `Integers` in this scope
|
2024-06-18 08:03:53 +00:00
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:11:32
|
2022-09-02 12:09:28 +00:00
|
|
|
|
|
2024-06-18 08:03:53 +00:00
|
|
|
11 | struct Jar(MyInput, MyTracked, Integers, create_tracked_structs);
|
2022-09-02 12:09:28 +00:00
|
|
|
| ^^^^^^^^ not found in this scope
|
|
|
|
|
|
|
|
error[E0412]: cannot find type `create_tracked_structs` in this scope
|
2024-06-18 08:03:53 +00:00
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:11:42
|
2022-09-02 12:09:28 +00:00
|
|
|
|
|
2024-06-18 08:03:53 +00:00
|
|
|
11 | struct Jar(MyInput, MyTracked, Integers, create_tracked_structs);
|
2022-09-02 12:09:28 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
|
|
|
|
|
|
|
warning: unused import: `test_log::test`
|
2024-06-18 08:03:53 +00:00
|
|
|
--> tests/compile-fail/singleton_only_for_input.rs:8:5
|
2022-09-02 12:09:28 +00:00
|
|
|
|
|
2024-06-18 08:03:53 +00:00
|
|
|
8 | use test_log::test;
|
2022-09-02 12:09:28 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[warn(unused_imports)]` on by default
|