File: macro_rules.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (41 lines) | stat: -rw-r--r-- 2,353 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module
  --> $DIR/macro_rules.rs:10:5
   |
LL |     macro_rules! m0 { () => { } };
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current constant `B`
   = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute
   = note: `#[warn(non_local_definitions)]` on by default

warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module
  --> $DIR/macro_rules.rs:16:1
   |
LL | non_local_macro::non_local_macro_rules!(my_macro);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current constant `_MACRO_EXPORT`
   = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute
   = note: the macro `non_local_macro::non_local_macro_rules` may come from an old version of the `non_local_macro` crate, try updating your dependency with `cargo update -p non_local_macro`
   = note: this warning originates in the macro `non_local_macro::non_local_macro_rules` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module
  --> $DIR/macro_rules.rs:21:5
   |
LL |     macro_rules! m { () => { } };
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `main`
   = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute

warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module
  --> $DIR/macro_rules.rs:29:13
   |
LL |             macro_rules! m2 { () => { } };
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current associated function `bar` and up 2 bodies
   = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute

warning: 4 warnings emitted