1 error[E0665]: `Default` cannot be derived for enums, only structs
2 --> $DIR/macros-nonfatal-errors.rs:20:10
4 LL | #[derive(Default)] //~ ERROR
7 error: inline assembly must be a string literal
8 --> $DIR/macros-nonfatal-errors.rs:24:10
10 LL | asm!(invalid); //~ ERROR
13 error: concat_idents! requires ident args.
14 --> $DIR/macros-nonfatal-errors.rs:26:5
16 LL | concat_idents!("not", "idents"); //~ ERROR
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: argument must be a string literal
20 --> $DIR/macros-nonfatal-errors.rs:28:17
22 LL | option_env!(invalid); //~ ERROR
25 error: expected string literal
26 --> $DIR/macros-nonfatal-errors.rs:29:10
28 LL | env!(invalid); //~ ERROR
31 error: expected string literal
32 --> $DIR/macros-nonfatal-errors.rs:30:10
34 LL | env!(foo, abr, baz); //~ ERROR
37 error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
38 --> $DIR/macros-nonfatal-errors.rs:31:5
40 LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST"); //~ ERROR
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 error: format argument must be a string literal
44 --> $DIR/macros-nonfatal-errors.rs:33:13
46 LL | format!(invalid); //~ ERROR
48 help: you might be missing a string literal to format with
50 LL | format!("{}", invalid); //~ ERROR
53 error: argument must be a string literal
54 --> $DIR/macros-nonfatal-errors.rs:35:14
56 LL | include!(invalid); //~ ERROR
59 error: argument must be a string literal
60 --> $DIR/macros-nonfatal-errors.rs:37:18
62 LL | include_str!(invalid); //~ ERROR
65 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: No such file or directory (os error 2)
66 --> $DIR/macros-nonfatal-errors.rs:38:5
68 LL | include_str!("i'd be quite surprised if a file with this name existed"); //~ ERROR
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 error: argument must be a string literal
72 --> $DIR/macros-nonfatal-errors.rs:39:20
74 LL | include_bytes!(invalid); //~ ERROR
77 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: No such file or directory (os error 2)
78 --> $DIR/macros-nonfatal-errors.rs:40:5
80 LL | include_bytes!("i'd be quite surprised if a file with this name existed"); //~ ERROR
81 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83 error: trace_macros! accepts only `true` or `false`
84 --> $DIR/macros-nonfatal-errors.rs:42:5
86 LL | trace_macros!(invalid); //~ ERROR
87 | ^^^^^^^^^^^^^^^^^^^^^^^
89 error: aborting due to 14 previous errors
91 For more information about this error, try `rustc --explain E0665`.