|
| 1 | +warning: non local definition should be avoided as they go against expectation |
| 2 | + --> $DIR/non_local_definitions.rs:33:9 |
| 3 | + | |
| 4 | +LL | impl Uto1 for Test {} |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = help: move this declaration outside the of the 1 outermost bodies |
| 8 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 9 | + = note: `#[warn(non_local_definitions)]` on by default |
| 10 | + |
| 11 | +warning: non local definition should be avoided as they go against expectation |
| 12 | + --> $DIR/non_local_definitions.rs:42:5 |
| 13 | + | |
| 14 | +LL | impl Uto2 for Test {} |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 16 | + | |
| 17 | + = help: move this declaration outside the of the 1 outermost bodies |
| 18 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 19 | + |
| 20 | +warning: non local definition should be avoided as they go against expectation |
| 21 | + --> $DIR/non_local_definitions.rs:50:5 |
| 22 | + | |
| 23 | +LL | impl Uto3 for Test {} |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 25 | + | |
| 26 | + = help: move this declaration outside the of the 1 outermost bodies |
| 27 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 28 | + |
| 29 | +warning: non local definition should be avoided as they go against expectation |
| 30 | + --> $DIR/non_local_definitions.rs:54:5 |
| 31 | + | |
| 32 | +LL | macro_rules! m0 { () => { } }; |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 34 | + | |
| 35 | + = help: move this declaration outside the of the 1 outermost bodies |
| 36 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 37 | + |
| 38 | +warning: non local definition should be avoided as they go against expectation |
| 39 | + --> $DIR/non_local_definitions.rs:66:5 |
| 40 | + | |
| 41 | +LL | macro_rules! m { () => { } }; |
| 42 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 43 | + | |
| 44 | + = help: move this declaration outside the of the 1 outermost bodies |
| 45 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 46 | + |
| 47 | +warning: non local definition should be avoided as they go against expectation |
| 48 | + --> $DIR/non_local_definitions.rs:69:5 |
| 49 | + | |
| 50 | +LL | / impl Test { |
| 51 | +LL | | |
| 52 | +LL | | fn foo() {} |
| 53 | +LL | | } |
| 54 | + | |_____^ |
| 55 | + | |
| 56 | + = help: move this declaration outside the of the 1 outermost bodies |
| 57 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 58 | + |
| 59 | +warning: non local definition should be avoided as they go against expectation |
| 60 | + --> $DIR/non_local_definitions.rs:74:5 |
| 61 | + | |
| 62 | +LL | / impl Display for Test { |
| 63 | +LL | | |
| 64 | +LL | | fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 65 | +LL | | todo!() |
| 66 | +LL | | } |
| 67 | +LL | | } |
| 68 | + | |_____^ |
| 69 | + | |
| 70 | + = help: move this declaration outside the of the 1 outermost bodies |
| 71 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 72 | + |
| 73 | +warning: non local definition should be avoided as they go against expectation |
| 74 | + --> $DIR/non_local_definitions.rs:82:9 |
| 75 | + | |
| 76 | +LL | impl Uto5 for Test {} |
| 77 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 78 | + | |
| 79 | + = help: move this declaration outside the of the 2 outermost bodies |
| 80 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 81 | + |
| 82 | +warning: non local definition should be avoided as they go against expectation |
| 83 | + --> $DIR/non_local_definitions.rs:101:9 |
| 84 | + | |
| 85 | +LL | / impl Display for InsideMain { |
| 86 | +LL | | |
| 87 | +LL | | fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 88 | +LL | | todo!() |
| 89 | +LL | | } |
| 90 | +LL | | } |
| 91 | + | |_________^ |
| 92 | + | |
| 93 | + = help: move this declaration outside the of the 2 outermost bodies |
| 94 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 95 | + |
| 96 | +warning: non local definition should be avoided as they go against expectation |
| 97 | + --> $DIR/non_local_definitions.rs:108:9 |
| 98 | + | |
| 99 | +LL | / impl InsideMain { |
| 100 | +LL | | |
| 101 | +LL | | fn bar() { |
| 102 | +LL | | #[macro_export] |
| 103 | +... | |
| 104 | +LL | | } |
| 105 | +LL | | } |
| 106 | + | |_________^ |
| 107 | + | |
| 108 | + = help: move this declaration outside the of the 2 outermost bodies |
| 109 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 110 | + |
| 111 | +warning: non local definition should be avoided as they go against expectation |
| 112 | + --> $DIR/non_local_definitions.rs:112:17 |
| 113 | + | |
| 114 | +LL | macro_rules! m2 { () => { } }; |
| 115 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 116 | + | |
| 117 | + = help: move this declaration outside the of the 3 outermost bodies |
| 118 | + = note: this may become deny-by-default in the Edition 2024 and higher |
| 119 | + |
| 120 | +warning: 11 warnings emitted |
| 121 | + |
0 commit comments