Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
ac28b86f
Commit
ac28b86f
authored
4 years ago
by
Bastian Köcher
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix ui tests for latest rust stable (#6310)
parent
b0aa4cfe
Branches
gh-readonly-queue/master/pr-6140-b5a5ac4487890046d226bedb0238eaccb423ae42
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/primitives/api/test/tests/ui/mock_only_one_error_type.stderr
+23
-18
23 additions, 18 deletions
...mitives/api/test/tests/ui/mock_only_one_error_type.stderr
with
23 additions
and
18 deletions
substrate/primitives/api/test/tests/ui/mock_only_one_error_type.stderr
+
23
−
18
View file @
ac28b86f
...
...
@@ -5,21 +5,26 @@ error: Error type can not change between runtime apis
| ^^^^
error[E0277]: the trait bound `u32: std::convert::From<std::string::String>` is not satisfied
--> $DIR/mock_only_one_error_type.rs:15:1
|
15 | / sp_api::mock_impl_runtime_apis! {
16 | | impl Api<Block> for MockApi {
17 | | type Error = u32;
18 | |
... |
26 | | }
27 | | }
| |_^ the trait `std::convert::From<std::string::String>` is not implemented for `u32`
|
= help: the following implementations were found:
<u32 as std::convert::From<bool>>
<u32 as std::convert::From<char>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
and 18 others
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
--> $DIR/mock_only_one_error_type.rs:15:1
|
15 | / sp_api::mock_impl_runtime_apis! {
16 | | impl Api<Block> for MockApi {
17 | | type Error = u32;
18 | |
... |
26 | | }
27 | | }
| |_^ the trait `std::convert::From<std::string::String>` is not implemented for `u32`
|
::: $WORKSPACE/primitives/api/src/lib.rs:347:35
|
347 | type Error: std::fmt::Debug + From<String>;
| ------------ required by this bound in `sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ApiErrorExt`
|
= help: the following implementations were found:
<u32 as std::convert::From<bool>>
<u32 as std::convert::From<char>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
and 18 others
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment