-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
gitpod /workspace/Solver (main) $ rustup toolchain install nightly-2022-08-22 && cargo +nightly-2022-08-22 build
info: syncing channel updates for 'nightly-2022-08-22-x86_64-unknown-linux-gnu'
nightly-2022-08-22-x86_64-unknown-linux-gnu unchanged - rustc 1.65.0-nightly (c0941dfb5 2022-08-21)
info: checking for self-update
Compiling linux-raw-sys v0.4.14
Compiling bitflags v2.5.0
Compiling fastrand v2.1.0
Compiling cfg-if v1.0.0
Compiling beef v0.5.2
Compiling funty v2.0.0
Compiling tap v1.0.1
Compiling bumpalo v3.14.0
Compiling leak_slice v0.2.0
Compiling libc v0.2.155
Compiling thiserror v1.0.61
Compiling rustix v0.38.34
Compiling platform-data v0.1.0-beta.3 (https://github.com/linksplatform/doublets-rs#5522d91c)
Compiling memmap2 v0.5.10
Compiling platform-trees v0.1.0-beta.1 (https://github.com/linksplatform/doublets-rs#5522d91c)
Compiling tempfile v3.10.1
Compiling platform-mem v0.1.0-pre+beta.2 (https://github.com/linksplatform/doublets-rs#5522d91c)
Compiling doublets v0.1.0-pre+beta.15 (https://github.com/linksplatform/doublets-rs#5522d91c)
Compiling solver v0.1.0 (/workspace/Solver)
error[E0412]: cannot find type `Link` in this scope
--> src/main.rs:70:75
|
70 | fn get_link_by_id(store: &mut unit::Store<usize, _>, id: usize) -> Result<Link<usize>, Error<usize>> {
| ^^^^
|
::: /workspace/.cargo/git/checkouts/doublets-rs-3835f06948971044/5522d91/doublets/src/data/traits.rs:16:1
|
16 | pub trait Links<T: LinkType>: Send + Sync {
| ----------------------------------------- similarly named trait `Links` defined here
|
help: a trait with a similar name exists
|
70 | fn get_link_by_id(store: &mut unit::Store<usize, _>, id: usize) -> Result<Links<usize>, Error<usize>> {
| ~~~~~
help: consider importing this struct
|
1 | use doublets::Link;
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
--> src/main.rs:70:50
|
70 | fn get_link_by_id(store: &mut unit::Store<usize, _>, id: usize) -> Result<Link<usize>, Error<usize>> {
| ^ not allowed in type signatures
|
help: use type parameters instead
|
70 | fn get_link_by_id<T>(store: &mut unit::Store<usize, T>, id: usize) -> Result<Link<usize>, Error<usize>> {
| +++ ~
Some errors have detailed explanations: E0121, E0412.
For more information about an error, try `rustc --explain E0121`.
error: could not compile `solver` due to 2 previous errors
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working