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: asm template must be a string literal
10 --> $DIR/macros-nonfatal-errors.rs:13:10
15 error: inline assembly must be a string literal
16 --> $DIR/macros-nonfatal-errors.rs:14:15
18 LL | llvm_asm!(invalid);
21 error: concat_idents! requires ident args.
22 --> $DIR/macros-nonfatal-errors.rs:16:5
24 LL | concat_idents!("not", "idents");
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: argument must be a string literal
28 --> $DIR/macros-nonfatal-errors.rs:18:17
30 LL | option_env!(invalid);
33 error: expected string literal
34 --> $DIR/macros-nonfatal-errors.rs:19:10
39 error: expected string literal
40 --> $DIR/macros-nonfatal-errors.rs:20:10
42 LL | env!(foo, abr, baz);
45 error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
46 --> $DIR/macros-nonfatal-errors.rs:21:5
48 LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 error: format argument must be a string literal
52 --> $DIR/macros-nonfatal-errors.rs:23:13
54 LL | format!(invalid);
57 help: you might be missing a string literal to format with
59 LL | format!("{}", invalid);
62 error: argument must be a string literal
63 --> $DIR/macros-nonfatal-errors.rs:25:14
65 LL | include!(invalid);
68 error: argument must be a string literal
69 --> $DIR/macros-nonfatal-errors.rs:27:18
71 LL | include_str!(invalid);
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
77 LL | include_str!("i'd be quite surprised if a file with this name existed");
78 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
82 error: argument must be a string literal
83 --> $DIR/macros-nonfatal-errors.rs:29:20
85 LL | include_bytes!(invalid);
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
91 LL | include_bytes!("i'd be quite surprised if a file with this name existed");
92 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
96 error: trace_macros! accepts only `true` or `false`
97 --> $DIR/macros-nonfatal-errors.rs:32:5
99 LL | trace_macros!(invalid);
100 | ^^^^^^^^^^^^^^^^^^^^^^^
102 error: aborting due to 15 previous errors
104 For more information about this error, try `rustc --explain E0665`.