linksplatform / linksplatform/doublets-rs
error[E0412]: cannot find type `Link` in this scope
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6
- Forks
- 0
- Avg merge
- 1h 37m
- Merged PRs (30d)
- 1
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, id: usize) -> Result, Error> {
| ^^^^
|
::: /workspace/.cargo/git/checkouts/doublets-rs-3835f06948971044/5522d91/doublets/src/data/traits.rs:16:1
|
16 | pub trait Links: 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, id: usize) -> Result, Error> {
| ~~~~~
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, id: usize) -> Result, Error> {
| ^ not allowed in type signatures
|
help: use type parameters instead
|
70 | fn get_link_by_id(store: &mut unit::Store, id: usize) -> Result, Error> {
| +++ ~
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
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/main.rs:70 and reproduce the reported errors with the rustup and cargo command in the issue. Check the compiler guidance for the missing Link type and the invalid placeholder in the function signature; done means the project builds successfully with the specified nightly toolchain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100