You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 5.11.0-34-generic #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021 x86_64
Description
I tried to import local proto, but cargo check failed.
Compiler output:
error[E0433]: failed to resolve: there are too many leading `super` keywords
--> /home/z4rx/Code/projects/tonic_issue/target/debug/build/tonic_issue-6b3a7d73b6aa2eac/out/service.rs:69:44
|
69 | ) -> Result<tonic::Response<super::super::domain::User>, tonic::Status> {
| ^^^^^ there are too many leading `super` keywords
error[E0433]: failed to resolve: there are too many leading `super` keywords
--> /home/z4rx/Code/projects/tonic_issue/target/debug/build/tonic_issue-6b3a7d73b6aa2eac/out/service.rs:92:44
|
92 | ) -> Result<tonic::Response<super::super::domain::User>, tonic::Status>;
| ^^^^^ there are too many leading `super` keywords
error[E0433]: failed to resolve: there are too many leading `super` keywords
--> /home/z4rx/Code/projects/tonic_issue/target/debug/build/tonic_issue-6b3a7d73b6aa2eac/out/service.rs:137:48
|
137 | type Response = super::super::domain::User;
| ^^^^^ there are too many leading `super` keywords
error[E0698]: type inside `async fn` body must be known in this context
--> /home/z4rx/Code/projects/tonic_issue/target/debug/build/tonic_issue-6b3a7d73b6aa2eac/out/service.rs:76:25
|
76 | let codec = tonic::codec::ProstCodec::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `U`
|
note: the type is part of the `async fn` body because of this `await`
--> /home/z4rx/Code/projects/tonic_issue/target/debug/build/tonic_issue-6b3a7d73b6aa2eac/out/service.rs:78:13
|
78 | self.inner.unary(request.into_request(), path, codec).await
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Bug Report
Version
└──tonic v0.5.2
└── tonic-build v0.5.2
Platform
Linux 5.11.0-34-generic #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021 x86_64
Description
I tried to import local proto, but cargo check failed.
Compiler output:
Repository for reproduce this error: https://github.com/Z4RX/tonic_issue
The text was updated successfully, but these errors were encountered: