1 error[E0665]: `Default` cannot be derived for enums, only structs
2 --> $DIR/macros-nonfatal-errors.rs:9:10
4 LL | #[derive(Default)]
7 error: inline assembly must be a string literal
8 --> $DIR/macros-nonfatal-errors.rs:13:10
13 error: concat_idents! requires ident args.
14 --> $DIR/macros-nonfatal-errors.rs:15:5
16 LL | concat_idents!("not", "idents");
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: argument must be a string literal
20 --> $DIR/macros-nonfatal-errors.rs:17:17
22 LL | option_env!(invalid);
25 error: expected string literal
26 --> $DIR/macros-nonfatal-errors.rs:18:10
31 error: expected string literal
32 --> $DIR/macros-nonfatal-errors.rs:19:10
34 LL | env!(foo, abr, baz);
37 error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
38 --> $DIR/macros-nonfatal-errors.rs:20:5
40 LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 error: format argument must be a string literal
44 --> $DIR/macros-nonfatal-errors.rs:22:13
46 LL | format!(invalid);
49 help: you might be missing a string literal to format with
51 LL | format!("{}", invalid);
54 error: argument must be a string literal
55 --> $DIR/macros-nonfatal-errors.rs:24:14
57 LL | include!(invalid);
60 error: argument must be a string literal
61 --> $DIR/macros-nonfatal-errors.rs:26:18
63 LL | include_str!(invalid);
66 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
67 --> $DIR/macros-nonfatal-errors.rs:27:5
69 LL | include_str!("i'd be quite surprised if a file with this name existed");
70 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 error: argument must be a string literal
73 --> $DIR/macros-nonfatal-errors.rs:28:20
75 LL | include_bytes!(invalid);
78 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
79 --> $DIR/macros-nonfatal-errors.rs:29:5
81 LL | include_bytes!("i'd be quite surprised if a file with this name existed");
82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84 error: trace_macros! accepts only `true` or `false`
85 --> $DIR/macros-nonfatal-errors.rs:31:5
87 LL | trace_macros!(invalid);
88 | ^^^^^^^^^^^^^^^^^^^^^^^
90 error: aborting due to 14 previous errors
92 For more information about this error, try `rustc --explain E0665`.