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
{{ message }}
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
warning: non-local `impl` definition, they should be avoided as they go against expectation
--> tests/test_error.rs:412:13
|
412 | / impl<'de> Visitor<'de> for X {
413 | | type Value = X;
414 | |
415 | | fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
... |
429 | | }
430 | | }
| |_____________^
|
= help: move this `impl` block outside the of the current associated function `deserialize` and up 2 bodies
= note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
= note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type
= note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <rust-lang/rust#120363>
= note: `#[warn(non_local_definitions)]` on by default
0 commit comments