Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kv_table_test运行错误 #4464

Open
Ka7rina opened this issue May 16, 2024 · 2 comments
Open

kv_table_test运行错误 #4464

Ka7rina opened this issue May 16, 2024 · 2 comments
Assignees

Comments

@Ka7rina
Copy link

Ka7rina commented May 16, 2024

报错
`error: custom attribute panicked
--> src/lib.rs:14:1
|
14 | #[liquid::interface(name = auto)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: both spans are in the same file AND we are using nightly Rust

error: custom attribute panicked
--> src/lib.rs:28:1
|
28 | #[liquid::interface(name = auto)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: both spans are in the same file AND we are using nightly Rust

error[E0432]: unresolved imports super::kv_table, super::table_manager
--> src/lib.rs:39:17
|
39 | use super::{kv_table::, table_manager::, *};
| ^^^^^^^^ ^^^^^^^^^^^^^ could not find table_manager in the crate root
| |
| could not find kv_table in the crate root

error[E0412]: cannot find type KvTable in this scope
--> src/lib.rs:43:31
|
41 | #[liquid(storage)]
| - help: you might be missing a type parameter: <KvTable>
42 | struct KvTableTest {
43 | table: storage::Value,
| ^^^^^^^ not found in this scope

error[E0412]: cannot find type TableManager in this scope
--> src/lib.rs:44:28
|
41 | #[liquid(storage)]
| - help: you might be missing a type parameter: <TableManager>
...
44 | tm: storage::Value,
| ^^^^^^^^^^^^ not found in this scope

error[E0433]: failed to resolve: use of undeclared type TableManager
--> src/lib.rs:58:29
|
58 | ... .initialize(TableManager::at("/sys/table_manager".parse().unwrap()));
| ^^^^^^^^^^^^ use of undeclared type TableManager

error[E0433]: failed to resolve: use of undeclared type KvTable
--> src/lib.rs:65:29
|
65 | ... .initialize(KvTable::at("/tables/t_kv_test".parse().unwrap()));
| ^^^^^^^ use of undeclared type KvTable

Some errors have detailed explanations: E0412, E0432, E0433.
For more information about an error, try rustc --explain E0412.
error: could not compile test due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile test due to 7 previous errors
`

@bxq2011hust bxq2011hust self-assigned this May 20, 2024
@bxq2011hust
Copy link
Member

你用的工具链版本是多少?

@Ka7rina
Copy link
Author

Ka7rina commented May 29, 2024

你用的工具链版本是多少?

rustc 1.68.0-nightly (d6f99e535 2023-01-02)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants