fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
2.6 KiB91 linesraw
1error[E0665]: `Default` cannot be derived for enums, only structs
2  --> $DIR/macros-nonfatal-errors.rs:9:10
3   |
4LL | #[derive(Default)]
5   |          ^^^^^^^
6
7error: inline assembly must be a string literal
8  --> $DIR/macros-nonfatal-errors.rs:13:10
9   |
10LL |     asm!(invalid);
11   |          ^^^^^^^
12
13error: concat_idents! requires ident args.
14  --> $DIR/macros-nonfatal-errors.rs:15:5
15   |
16LL |     concat_idents!("not", "idents");
17   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19error: argument must be a string literal
20  --> $DIR/macros-nonfatal-errors.rs:17:17
21   |
22LL |     option_env!(invalid);
23   |                 ^^^^^^^
24
25error: expected string literal
26  --> $DIR/macros-nonfatal-errors.rs:18:10
27   |
28LL |     env!(invalid);
29   |          ^^^^^^^
30
31error: expected string literal
32  --> $DIR/macros-nonfatal-errors.rs:19:10
33   |
34LL |     env!(foo, abr, baz);
35   |          ^^^
36
37error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
38  --> $DIR/macros-nonfatal-errors.rs:20:5
39   |
40LL |     env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
41   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43error: format argument must be a string literal
44  --> $DIR/macros-nonfatal-errors.rs:22:13
45   |
46LL |     format!(invalid);
47   |             ^^^^^^^
48   |
49help: you might be missing a string literal to format with
50   |
51LL |     format!("{}", invalid);
52   |             ^^^^^
53
54error: argument must be a string literal
55  --> $DIR/macros-nonfatal-errors.rs:24:14
56   |
57LL |     include!(invalid);
58   |              ^^^^^^^
59
60error: argument must be a string literal
61  --> $DIR/macros-nonfatal-errors.rs:26:18
62   |
63LL |     include_str!(invalid);
64   |                  ^^^^^^^
65
66error: 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
68   |
69LL |     include_str!("i'd be quite surprised if a file with this name existed");
70   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
72error: argument must be a string literal
73  --> $DIR/macros-nonfatal-errors.rs:28:20
74   |
75LL |     include_bytes!(invalid);
76   |                    ^^^^^^^
77
78error: 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
80   |
81LL |     include_bytes!("i'd be quite surprised if a file with this name existed");
82   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83
84error: trace_macros! accepts only `true` or `false`
85  --> $DIR/macros-nonfatal-errors.rs:31:5
86   |
87LL |     trace_macros!(invalid);
88   |     ^^^^^^^^^^^^^^^^^^^^^^^
89
90error: aborting due to 14 previous errors
91