]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macros-nonfatal-errors.stderr
Rollup merge of #72123 - jsgf:stabilize-arg0, r=sfackler
[rust.git] / src / test / ui / macros / macros-nonfatal-errors.stderr
1 error[E0665]: `Default` cannot be derived for enums, only structs
2   --> $DIR/macros-nonfatal-errors.rs:9:10
3    |
4 LL | #[derive(Default)]
5    |          ^^^^^^^
6    |
7    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error: asm template must be a string literal
10   --> $DIR/macros-nonfatal-errors.rs:13:10
11    |
12 LL |     asm!(invalid);
13    |          ^^^^^^^
14
15 error: inline assembly must be a string literal
16   --> $DIR/macros-nonfatal-errors.rs:14:15
17    |
18 LL |     llvm_asm!(invalid);
19    |               ^^^^^^^
20
21 error: concat_idents! requires ident args.
22   --> $DIR/macros-nonfatal-errors.rs:16:5
23    |
24 LL |     concat_idents!("not", "idents");
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: argument must be a string literal
28   --> $DIR/macros-nonfatal-errors.rs:18:17
29    |
30 LL |     option_env!(invalid);
31    |                 ^^^^^^^
32
33 error: expected string literal
34   --> $DIR/macros-nonfatal-errors.rs:19:10
35    |
36 LL |     env!(invalid);
37    |          ^^^^^^^
38
39 error: expected string literal
40   --> $DIR/macros-nonfatal-errors.rs:20:10
41    |
42 LL |     env!(foo, abr, baz);
43    |          ^^^
44
45 error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
46   --> $DIR/macros-nonfatal-errors.rs:21:5
47    |
48 LL |     env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
49    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
51 error: format argument must be a string literal
52   --> $DIR/macros-nonfatal-errors.rs:23:13
53    |
54 LL |     format!(invalid);
55    |             ^^^^^^^
56    |
57 help: you might be missing a string literal to format with
58    |
59 LL |     format!("{}", invalid);
60    |             ^^^^^
61
62 error: argument must be a string literal
63   --> $DIR/macros-nonfatal-errors.rs:25:14
64    |
65 LL |     include!(invalid);
66    |              ^^^^^^^
67
68 error: argument must be a string literal
69   --> $DIR/macros-nonfatal-errors.rs:27:18
70    |
71 LL |     include_str!(invalid);
72    |                  ^^^^^^^
73
74 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
75   --> $DIR/macros-nonfatal-errors.rs:28:5
76    |
77 LL |     include_str!("i'd be quite surprised if a file with this name existed");
78    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79    |
80    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
81
82 error: argument must be a string literal
83   --> $DIR/macros-nonfatal-errors.rs:29:20
84    |
85 LL |     include_bytes!(invalid);
86    |                    ^^^^^^^
87
88 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
89   --> $DIR/macros-nonfatal-errors.rs:30:5
90    |
91 LL |     include_bytes!("i'd be quite surprised if a file with this name existed");
92    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93    |
94    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
95
96 error: trace_macros! accepts only `true` or `false`
97   --> $DIR/macros-nonfatal-errors.rs:32:5
98    |
99 LL |     trace_macros!(invalid);
100    |     ^^^^^^^^^^^^^^^^^^^^^^^
101
102 error: aborting due to 15 previous errors
103
104 For more information about this error, try `rustc --explain E0665`.