1 error: the `#[default]` attribute may only be used on unit enum variants
2 --> $DIR/macros-nonfatal-errors.rs:13:5
7 error: the `#[default]` attribute may only be used on unit enum variants
8 --> $DIR/macros-nonfatal-errors.rs:18:36
10 LL | struct DefaultInnerAttrTupleStruct(#[default] ());
13 error: the `#[default]` attribute may only be used on unit enum variants
14 --> $DIR/macros-nonfatal-errors.rs:22:1
19 error: the `#[default]` attribute may only be used on unit enum variants
20 --> $DIR/macros-nonfatal-errors.rs:26:1
25 error: the `#[default]` attribute may only be used on unit enum variants
26 --> $DIR/macros-nonfatal-errors.rs:36:11
28 LL | Foo = #[default] 0,
31 error: the `#[default]` attribute may only be used on unit enum variants
32 --> $DIR/macros-nonfatal-errors.rs:37:14
34 LL | Bar([u8; #[default] 1]),
37 error: no default declared
38 --> $DIR/macros-nonfatal-errors.rs:42:10
40 LL | #[derive(Default)]
43 = help: make a unit variant default by placing `#[default]` above it
44 = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
46 error: multiple declared defaults
47 --> $DIR/macros-nonfatal-errors.rs:48:10
49 LL | #[derive(Default)]
56 | --- additional default
59 | --- additional default
61 = note: only one variant can be default
62 = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
64 error: `#[default]` attribute does not accept a value
65 --> $DIR/macros-nonfatal-errors.rs:60:5
70 = help: try using `#[default]`
72 error: multiple `#[default]` attributes
73 --> $DIR/macros-nonfatal-errors.rs:68:5
76 | ---------- `#[default]` used here
78 | ---------- `#[default]` used again here
82 = note: only one `#[default]` attribute is needed
83 help: try removing this
84 --> $DIR/macros-nonfatal-errors.rs:67:5
89 error: multiple `#[default]` attributes
90 --> $DIR/macros-nonfatal-errors.rs:78:5
93 | ---------- `#[default]` used here
95 | ---------- `#[default]` used again here
100 = note: only one `#[default]` attribute is needed
101 help: try removing these
102 --> $DIR/macros-nonfatal-errors.rs:75:5
111 error: the `#[default]` attribute may only be used on unit enum variants
112 --> $DIR/macros-nonfatal-errors.rs:85:5
117 = help: consider a manual implementation of `Default`
119 error: default variant must be exhaustive
120 --> $DIR/macros-nonfatal-errors.rs:93:5
122 LL | #[non_exhaustive]
123 | ----------------- declared `#[non_exhaustive]` here
127 = help: consider a manual implementation of `Default`
129 error: asm template must be a string literal
130 --> $DIR/macros-nonfatal-errors.rs:98:10
135 error: concat_idents! requires ident args
136 --> $DIR/macros-nonfatal-errors.rs:101:5
138 LL | concat_idents!("not", "idents");
139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
141 error: argument must be a string literal
142 --> $DIR/macros-nonfatal-errors.rs:103:17
144 LL | option_env!(invalid);
147 error: expected string literal
148 --> $DIR/macros-nonfatal-errors.rs:104:10
153 error: expected string literal
154 --> $DIR/macros-nonfatal-errors.rs:105:10
156 LL | env!(foo, abr, baz);
159 error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
160 --> $DIR/macros-nonfatal-errors.rs:106:5
162 LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
165 = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
167 error: format argument must be a string literal
168 --> $DIR/macros-nonfatal-errors.rs:108:13
170 LL | format!(invalid);
173 help: you might be missing a string literal to format with
175 LL | format!("{}", invalid);
178 error: argument must be a string literal
179 --> $DIR/macros-nonfatal-errors.rs:110:14
181 LL | include!(invalid);
184 error: argument must be a string literal
185 --> $DIR/macros-nonfatal-errors.rs:112:18
187 LL | include_str!(invalid);
190 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
191 --> $DIR/macros-nonfatal-errors.rs:113:5
193 LL | include_str!("i'd be quite surprised if a file with this name existed");
194 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
196 = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
198 error: argument must be a string literal
199 --> $DIR/macros-nonfatal-errors.rs:114:20
201 LL | include_bytes!(invalid);
204 error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
205 --> $DIR/macros-nonfatal-errors.rs:115:5
207 LL | include_bytes!("i'd be quite surprised if a file with this name existed");
208 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
210 = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
212 error: trace_macros! accepts only `true` or `false`
213 --> $DIR/macros-nonfatal-errors.rs:117:5
215 LL | trace_macros!(invalid);
216 | ^^^^^^^^^^^^^^^^^^^^^^
218 error: cannot find macro `llvm_asm` in this scope
219 --> $DIR/macros-nonfatal-errors.rs:99:5
221 LL | llvm_asm!(invalid);
224 error: aborting due to 27 previous errors