11error[E0665]: `Default` cannot be derived for enums, only structs
2- --> $DIR/macros-nonfatal-errors.rs:20 :10
2+ --> $DIR/macros-nonfatal-errors.rs:9 :10
33 |
44LL | #[derive(Default)] //~ ERROR
55 | ^^^^^^^
66
77error: inline assembly must be a string literal
8- --> $DIR/macros-nonfatal-errors.rs:24 :10
8+ --> $DIR/macros-nonfatal-errors.rs:13 :10
99 |
1010LL | asm!(invalid); //~ ERROR
1111 | ^^^^^^^
1212
1313error: concat_idents! requires ident args.
14- --> $DIR/macros-nonfatal-errors.rs:26 :5
14+ --> $DIR/macros-nonfatal-errors.rs:15 :5
1515 |
1616LL | concat_idents!("not", "idents"); //~ ERROR
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
1919error: argument must be a string literal
20- --> $DIR/macros-nonfatal-errors.rs:28 :17
20+ --> $DIR/macros-nonfatal-errors.rs:17 :17
2121 |
2222LL | option_env!(invalid); //~ ERROR
2323 | ^^^^^^^
2424
2525error: expected string literal
26- --> $DIR/macros-nonfatal-errors.rs:29 :10
26+ --> $DIR/macros-nonfatal-errors.rs:18 :10
2727 |
2828LL | env!(invalid); //~ ERROR
2929 | ^^^^^^^
3030
3131error: expected string literal
32- --> $DIR/macros-nonfatal-errors.rs:30 :10
32+ --> $DIR/macros-nonfatal-errors.rs:19 :10
3333 |
3434LL | env!(foo, abr, baz); //~ ERROR
3535 | ^^^
3636
3737error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
38- --> $DIR/macros-nonfatal-errors.rs:31 :5
38+ --> $DIR/macros-nonfatal-errors.rs:20 :5
3939 |
4040LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST"); //~ ERROR
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4242
4343error: format argument must be a string literal
44- --> $DIR/macros-nonfatal-errors.rs:33 :13
44+ --> $DIR/macros-nonfatal-errors.rs:22 :13
4545 |
4646LL | format!(invalid); //~ ERROR
4747 | ^^^^^^^
@@ -51,37 +51,37 @@ LL | format!("{}", invalid); //~ ERROR
5151 | ^^^^^
5252
5353error: argument must be a string literal
54- --> $DIR/macros-nonfatal-errors.rs:35 :14
54+ --> $DIR/macros-nonfatal-errors.rs:24 :14
5555 |
5656LL | include!(invalid); //~ ERROR
5757 | ^^^^^^^
5858
5959error: argument must be a string literal
60- --> $DIR/macros-nonfatal-errors.rs:37 :18
60+ --> $DIR/macros-nonfatal-errors.rs:26 :18
6161 |
6262LL | include_str!(invalid); //~ ERROR
6363 | ^^^^^^^
6464
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
65+ error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
66+ --> $DIR/macros-nonfatal-errors.rs:27 :5
6767 |
6868LL | include_str!("i'd be quite surprised if a file with this name existed"); //~ ERROR
6969 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7070
7171error: argument must be a string literal
72- --> $DIR/macros-nonfatal-errors.rs:39 :20
72+ --> $DIR/macros-nonfatal-errors.rs:28 :20
7373 |
7474LL | include_bytes!(invalid); //~ ERROR
7575 | ^^^^^^^
7676
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
77+ error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
78+ --> $DIR/macros-nonfatal-errors.rs:29 :5
7979 |
8080LL | include_bytes!("i'd be quite surprised if a file with this name existed"); //~ ERROR
8181 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8282
8383error: trace_macros! accepts only `true` or `false`
84- --> $DIR/macros-nonfatal-errors.rs:42 :5
84+ --> $DIR/macros-nonfatal-errors.rs:31 :5
8585 |
8686LL | trace_macros!(invalid); //~ ERROR
8787 | ^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments