]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0665]: `Default` cannot be derived for enums, only structs |
0bf4aa26 | 2 | --> $DIR/macros-nonfatal-errors.rs:9:10 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | #[derive(Default)] |
b7449926 | 5 | | ^^^^^^^ |
74b04a01 XL |
6 | | |
7 | = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
8 | |
9 | error: inline assembly must be a string literal | |
ba9703b0 | 10 | --> $DIR/macros-nonfatal-errors.rs:13:15 |
b7449926 | 11 | | |
ba9703b0 XL |
12 | LL | llvm_asm!(invalid); |
13 | | ^^^^^^^ | |
b7449926 XL |
14 | |
15 | error: concat_idents! requires ident args. | |
0bf4aa26 | 16 | --> $DIR/macros-nonfatal-errors.rs:15:5 |
b7449926 | 17 | | |
532ac7d7 | 18 | LL | concat_idents!("not", "idents"); |
b7449926 XL |
19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
20 | ||
21 | error: argument must be a string literal | |
0bf4aa26 | 22 | --> $DIR/macros-nonfatal-errors.rs:17:17 |
b7449926 | 23 | | |
532ac7d7 | 24 | LL | option_env!(invalid); |
b7449926 XL |
25 | | ^^^^^^^ |
26 | ||
27 | error: expected string literal | |
0bf4aa26 | 28 | --> $DIR/macros-nonfatal-errors.rs:18:10 |
b7449926 | 29 | | |
532ac7d7 | 30 | LL | env!(invalid); |
b7449926 XL |
31 | | ^^^^^^^ |
32 | ||
33 | error: expected string literal | |
0bf4aa26 | 34 | --> $DIR/macros-nonfatal-errors.rs:19:10 |
b7449926 | 35 | | |
532ac7d7 | 36 | LL | env!(foo, abr, baz); |
b7449926 XL |
37 | | ^^^ |
38 | ||
39 | error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined | |
0bf4aa26 | 40 | --> $DIR/macros-nonfatal-errors.rs:20:5 |
b7449926 | 41 | | |
532ac7d7 | 42 | LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST"); |
b7449926 XL |
43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
44 | ||
45 | error: format argument must be a string literal | |
0bf4aa26 | 46 | --> $DIR/macros-nonfatal-errors.rs:22:13 |
b7449926 | 47 | | |
532ac7d7 | 48 | LL | format!(invalid); |
b7449926 | 49 | | ^^^^^^^ |
e74abb32 | 50 | | |
b7449926 XL |
51 | help: you might be missing a string literal to format with |
52 | | | |
532ac7d7 | 53 | LL | format!("{}", invalid); |
b7449926 XL |
54 | | ^^^^^ |
55 | ||
56 | error: argument must be a string literal | |
0bf4aa26 | 57 | --> $DIR/macros-nonfatal-errors.rs:24:14 |
b7449926 | 58 | | |
532ac7d7 | 59 | LL | include!(invalid); |
b7449926 XL |
60 | | ^^^^^^^ |
61 | ||
62 | error: argument must be a string literal | |
0bf4aa26 | 63 | --> $DIR/macros-nonfatal-errors.rs:26:18 |
b7449926 | 64 | | |
532ac7d7 | 65 | LL | include_str!(invalid); |
b7449926 XL |
66 | | ^^^^^^^ |
67 | ||
0bf4aa26 XL |
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 | |
b7449926 | 70 | | |
532ac7d7 | 71 | LL | include_str!("i'd be quite surprised if a file with this name existed"); |
b7449926 | 72 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
74b04a01 XL |
73 | | |
74 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
75 | |
76 | error: argument must be a string literal | |
0bf4aa26 | 77 | --> $DIR/macros-nonfatal-errors.rs:28:20 |
b7449926 | 78 | | |
532ac7d7 | 79 | LL | include_bytes!(invalid); |
b7449926 XL |
80 | | ^^^^^^^ |
81 | ||
0bf4aa26 XL |
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 | |
b7449926 | 84 | | |
532ac7d7 | 85 | LL | include_bytes!("i'd be quite surprised if a file with this name existed"); |
b7449926 | 86 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
74b04a01 XL |
87 | | |
88 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
89 | |
90 | error: trace_macros! accepts only `true` or `false` | |
0bf4aa26 | 91 | --> $DIR/macros-nonfatal-errors.rs:31:5 |
b7449926 | 92 | | |
532ac7d7 | 93 | LL | trace_macros!(invalid); |
b7449926 XL |
94 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
95 | ||
96 | error: aborting due to 14 previous errors | |
97 | ||
60c5eb7d | 98 | For more information about this error, try `rustc --explain E0665`. |