20 lines
1.3 KiB
Plaintext
20 lines
1.3 KiB
Plaintext
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
|
|
--> $DIR/cargo-update.rs:17:1
|
|
|
|
|
LL | non_local_macro::non_local_impl!(LocalStruct);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| `LocalStruct` is not local
|
|
| `Debug` is not local
|
|
| move the `impl` block outside of this constant `_IMPL_DEBUG`
|
|
|
|
|
= note: the macro `non_local_macro::non_local_impl` defines the non-local `impl`, and may need to be changed
|
|
= note: the macro `non_local_macro::non_local_impl` may come from an old version of the `non_local_macro` crate, try updating your dependency with `cargo update -p non_local_macro`
|
|
= note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
|
|
= note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
|
|
= note: `#[warn(non_local_definitions)]` on by default
|
|
= note: this warning originates in the macro `non_local_macro::non_local_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
warning: 1 warning emitted
|
|
|