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