1 error[E0665]: `Default` cannot be derived for enums, only structs
2 --> $DIR/macros-nonfatal-errors.rs:9:10
4 LL | #[derive(Default)]
7 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
9 error: inline assembly must be a string literal
10 --> $DIR/macros-nonfatal-errors.rs:13:15
12 LL | llvm_asm!(invalid);
15 error: concat_idents! requires ident args.
16 --> $DIR/macros-nonfatal-errors.rs:15:5
18 LL | concat_idents!("not", "idents");
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: argument must be a string literal
22 --> $DIR/macros-nonfatal-errors.rs:17:17
24 LL | option_env!(invalid);
27 error: expected string literal
28 --> $DIR/macros-nonfatal-errors.rs:18:10
33 error: expected string literal
34 --> $DIR/macros-nonfatal-errors.rs:19:10
36 LL | env!(foo, abr, baz);
39 error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
40 --> $DIR/macros-nonfatal-errors.rs:20:5
42 LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: format argument must be a string literal
46 --> $DIR/macros-nonfatal-errors.rs:22:13
48 LL | format!(invalid);
51 help: you might be missing a string literal to format with
53 LL | format!("{}", invalid);
56 error: argument must be a string literal
57 --> $DIR/macros-nonfatal-errors.rs:24:14
59 LL | include!(invalid);
62 error: argument must be a string literal
63 --> $DIR/macros-nonfatal-errors.rs:26:18
65 LL | include_str!(invalid);
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
71 LL | include_str!("i'd be quite surprised if a file with this name existed");
72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
76 error: argument must be a string literal
77 --> $DIR/macros-nonfatal-errors.rs:28:20
79 LL | include_bytes!(invalid);
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
85 LL | include_bytes!("i'd be quite surprised if a file with this name existed");
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
90 error: trace_macros! accepts only `true` or `false`
91 --> $DIR/macros-nonfatal-errors.rs:31:5
93 LL | trace_macros!(invalid);
94 | ^^^^^^^^^^^^^^^^^^^^^^^
96 error: aborting due to 14 previous errors
98 For more information about this error, try `rustc --explain E0665`.