@@ -13,10 +13,7 @@ help: move this `impl` block outside of the current constant `Z`
1313 --> $DIR/consts.rs:13:5
1414 |
1515LL | impl Uto for &Test {}
16- | ^^^^^---^^^^^-----^^^
17- | | |
18- | | may need to be moved as well
19- | may need to be moved as well
16+ | ^^^^^^^^^^^^^^^^^^^^^
2017 = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration
2118 = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
2219 = note: `#[warn(non_local_definitions)]` on by default
@@ -33,10 +30,7 @@ help: move this `impl` block outside of the current static `A`
3330 --> $DIR/consts.rs:24:5
3431 |
3532LL | impl Uto2 for Test {}
36- | ^^^^^----^^^^^----^^^
37- | | |
38- | | may need to be moved as well
39- | may need to be moved as well
33+ | ^^^^^^^^^^^^^^^^^^^^^
4034 = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration
4135 = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
4236
@@ -52,10 +46,7 @@ help: move this `impl` block outside of the current constant `B`
5246 --> $DIR/consts.rs:32:5
5347 |
5448LL | impl Uto3 for Test {}
55- | ^^^^^----^^^^^----^^^
56- | | |
57- | | may need to be moved as well
58- | may need to be moved as well
49+ | ^^^^^^^^^^^^^^^^^^^^^
5950 = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration
6051 = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
6152
@@ -69,10 +60,7 @@ LL | impl Test {
6960help: move this `impl` block outside of the current function `main`
7061 --> $DIR/consts.rs:43:5
7162 |
72- LL | impl Test {
73- | ^ ---- may need to be moved as well
74- | _____|
75- | |
63+ LL | / impl Test {
7664LL | |
7765LL | | fn foo() {}
7866LL | | }
@@ -89,10 +77,7 @@ LL | impl Test {
8977help: move this `impl` block outside of the current inline constant `<unnameable>` and up 2 bodies
9078 --> $DIR/consts.rs:50:9
9179 |
92- LL | impl Test {
93- | ^ ---- may need to be moved as well
94- | _________|
95- | |
80+ LL | / impl Test {
9681LL | |
9782LL | | fn hoo() {}
9883LL | | }
@@ -109,10 +94,7 @@ LL | impl Test {
10994help: move this `impl` block outside of the current constant `_` and up 2 bodies
11095 --> $DIR/consts.rs:59:9
11196 |
112- LL | impl Test {
113- | ^ ---- may need to be moved as well
114- | _________|
115- | |
97+ LL | / impl Test {
11698LL | |
11799LL | | fn foo2() {}
118100LL | | }
@@ -132,10 +114,7 @@ help: move this `impl` block outside of the current closure `<unnameable>` and u
132114 --> $DIR/consts.rs:72:9
133115 |
134116LL | impl Uto9 for Test {}
135- | ^^^^^----^^^^^----^^^
136- | | |
137- | | may need to be moved as well
138- | may need to be moved as well
117+ | ^^^^^^^^^^^^^^^^^^^^^
139118 = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
140119
141120warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
@@ -150,10 +129,7 @@ help: move this `impl` block outside of the current constant expression `<unname
150129 --> $DIR/consts.rs:79:9
151130 |
152131LL | impl Uto10 for Test {}
153- | ^^^^^-----^^^^^----^^^
154- | | |
155- | | may need to be moved as well
156- | may need to be moved as well
132+ | ^^^^^^^^^^^^^^^^^^^^^^
157133 = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
158134
159135warning: 8 warnings emitted
0 commit comments