]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/macros-nonfatal-errors.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / macros / macros-nonfatal-errors.stderr
CommitLineData
b7449926 1error[E0665]: `Default` cannot be derived for enums, only structs
0bf4aa26 2 --> $DIR/macros-nonfatal-errors.rs:9:10
b7449926 3 |
532ac7d7 4LL | #[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
9error: inline assembly must be a string literal
ba9703b0 10 --> $DIR/macros-nonfatal-errors.rs:13:15
b7449926 11 |
ba9703b0
XL
12LL | llvm_asm!(invalid);
13 | ^^^^^^^
b7449926
XL
14
15error: concat_idents! requires ident args.
0bf4aa26 16 --> $DIR/macros-nonfatal-errors.rs:15:5
b7449926 17 |
532ac7d7 18LL | concat_idents!("not", "idents");
b7449926
XL
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21error: argument must be a string literal
0bf4aa26 22 --> $DIR/macros-nonfatal-errors.rs:17:17
b7449926 23 |
532ac7d7 24LL | option_env!(invalid);
b7449926
XL
25 | ^^^^^^^
26
27error: expected string literal
0bf4aa26 28 --> $DIR/macros-nonfatal-errors.rs:18:10
b7449926 29 |
532ac7d7 30LL | env!(invalid);
b7449926
XL
31 | ^^^^^^^
32
33error: expected string literal
0bf4aa26 34 --> $DIR/macros-nonfatal-errors.rs:19:10
b7449926 35 |
532ac7d7 36LL | env!(foo, abr, baz);
b7449926
XL
37 | ^^^
38
39error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
0bf4aa26 40 --> $DIR/macros-nonfatal-errors.rs:20:5
b7449926 41 |
532ac7d7 42LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
b7449926
XL
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
45error: format argument must be a string literal
0bf4aa26 46 --> $DIR/macros-nonfatal-errors.rs:22:13
b7449926 47 |
532ac7d7 48LL | format!(invalid);
b7449926 49 | ^^^^^^^
e74abb32 50 |
b7449926
XL
51help: you might be missing a string literal to format with
52 |
532ac7d7 53LL | format!("{}", invalid);
b7449926
XL
54 | ^^^^^
55
56error: argument must be a string literal
0bf4aa26 57 --> $DIR/macros-nonfatal-errors.rs:24:14
b7449926 58 |
532ac7d7 59LL | include!(invalid);
b7449926
XL
60 | ^^^^^^^
61
62error: argument must be a string literal
0bf4aa26 63 --> $DIR/macros-nonfatal-errors.rs:26:18
b7449926 64 |
532ac7d7 65LL | include_str!(invalid);
b7449926
XL
66 | ^^^^^^^
67
0bf4aa26
XL
68error: 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 71LL | 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
76error: argument must be a string literal
0bf4aa26 77 --> $DIR/macros-nonfatal-errors.rs:28:20
b7449926 78 |
532ac7d7 79LL | include_bytes!(invalid);
b7449926
XL
80 | ^^^^^^^
81
0bf4aa26
XL
82error: 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 85LL | 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
90error: trace_macros! accepts only `true` or `false`
0bf4aa26 91 --> $DIR/macros-nonfatal-errors.rs:31:5
b7449926 92 |
532ac7d7 93LL | trace_macros!(invalid);
b7449926
XL
94 | ^^^^^^^^^^^^^^^^^^^^^^^
95
96error: aborting due to 14 previous errors
97
60c5eb7d 98For more information about this error, try `rustc --explain E0665`.