#[derive(sqlx::FromRow)]
struct Foo {
bar: _,
}
fn main() {}
The current output is:
error[E0121]: the placeholder `_` is not allowed within types on item signatures for structs
--> src\main.rs:3:10
|
3 | bar: _,
| ^ not allowed in type signatures
|
help: use type parameters instead
|
2 ~ struct Foo<T> {
3 ~ bar: T,
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for implementations
--> src\main.rs:3:10
|
3 | bar: _,
| ^
| |
| not allowed in type signatures
| not allowed in type signatures
|
help: use type parameters instead
|
1 ~ #[derive(sqlx::FromRo, Tw)]
2 | struct Foo {
3 ~ bar: TT,
|
For more information about this error, try `rustc --explain E0121`.
error: could not compile `sandbox` due to 2 previous errors
Additionally, here is a screenshot of the capture for coloring to be visible:
Ideally the second error should either not provide any suggestion or be skipped altogether as it seems to be related to auto-generated code.
I was only able to reproduce this with an external derive macro. I am not knowledgeable enough to try to create one causing this myself.
Given the following code:
The current output is:
Additionally, here is a screenshot of the capture for coloring to be visible:
Ideally the second error should either not provide any suggestion or be skipped altogether as it seems to be related to auto-generated code.
I was only able to reproduce this with an external derive macro. I am not knowledgeable enough to try to create one causing this myself.