1 error[E0665]: `Default` cannot be derived for enums, only structs
2 --> $DIR/macros-nonfatal-errors.rs:21:10
4 LL | #[derive(Default)] //~ ERROR
7 error: inline assembly must be a string literal
8 --> $DIR/macros-nonfatal-errors.rs:25:10
10 LL | asm!(invalid); //~ ERROR
13 error: concat_idents! requires ident args.
14 --> $DIR/macros-nonfatal-errors.rs:27:5
16 LL | concat_idents!("not", "idents"); //~ ERROR
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: argument must be a string literal
20 --> $DIR/macros-nonfatal-errors.rs:29:17
22 LL | option_env!(invalid); //~ ERROR
25 error: expected string literal
26 --> $DIR/macros-nonfatal-errors.rs:30:10
28 LL | env!(invalid); //~ ERROR
31 error: expected string literal
32 --> $DIR/macros-nonfatal-errors.rs:31: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:32:5
40 LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST"); //~ ERROR
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 error[E0658]: non-ident macro paths are experimental (see issue #35896)
44 --> $DIR/macros-nonfatal-errors.rs:34:5
46 LL | foo::blah!(); //~ ERROR
49 = help: add #![feature(use_extern_macros)] to the crate attributes to enable
51 error: format argument must be a string literal
52 --> $DIR/macros-nonfatal-errors.rs:36:13
54 LL | format!(invalid); //~ ERROR
56 help: you might be missing a string literal to format with
58 LL | format!("{}", invalid); //~ ERROR
61 error: argument must be a string literal
62 --> $DIR/macros-nonfatal-errors.rs:38:14
64 LL | include!(invalid); //~ ERROR
67 error: argument must be a string literal
68 --> $DIR/macros-nonfatal-errors.rs:40:18
70 LL | include_str!(invalid); //~ ERROR
73 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)
74 --> $DIR/macros-nonfatal-errors.rs:41:5
76 LL | include_str!("i'd be quite surprised if a file with this name existed"); //~ ERROR
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79 error: argument must be a string literal
80 --> $DIR/macros-nonfatal-errors.rs:42:20
82 LL | include_bytes!(invalid); //~ ERROR
85 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)
86 --> $DIR/macros-nonfatal-errors.rs:43:5
88 LL | include_bytes!("i'd be quite surprised if a file with this name existed"); //~ ERROR
89 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91 error: trace_macros! accepts only `true` or `false`
92 --> $DIR/macros-nonfatal-errors.rs:45:5
94 LL | trace_macros!(invalid); //~ ERROR
95 | ^^^^^^^^^^^^^^^^^^^^^^^
97 error: aborting due to 15 previous errors
99 Some errors occurred: E0658, E0665.
100 For more information about an error, try `rustc --explain E0658`.