]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[rust.git] / src / test / ui-fulldeps / session-diagnostic / diagnostic-derive.stderr
1 error: unsupported type attribute for diagnostic derive enum
2   --> $DIR/diagnostic-derive.rs:39:1
3    |
4 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0123")]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: diagnostic slug not specified
8   --> $DIR/diagnostic-derive.rs:42:5
9    |
10 LL |     Foo,
11    |     ^^^
12    |
13    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
14
15 error: diagnostic slug not specified
16   --> $DIR/diagnostic-derive.rs:44:5
17    |
18 LL |     Bar,
19    |     ^^^
20    |
21    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
22
23 error: `#[diag = ...]` is not a valid attribute
24   --> $DIR/diagnostic-derive.rs:50:1
25    |
26 LL | #[diag = "E0123"]
27    | ^^^^^^^^^^^^^^^^^
28
29 error: `#[nonsense(...)]` is not a valid attribute
30   --> $DIR/diagnostic-derive.rs:55:1
31    |
32 LL | #[nonsense(typeck::ambiguous_lifetime_bound, code = "E0123")]
33    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
35 error: diagnostic slug not specified
36   --> $DIR/diagnostic-derive.rs:55:1
37    |
38 LL | / #[nonsense(typeck::ambiguous_lifetime_bound, code = "E0123")]
39 LL | |
40 LL | |
41 LL | |
42 LL | | struct InvalidStructAttr {}
43    | |___________________________^
44    |
45    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
46
47 error: `#[diag("...")]` is not a valid attribute
48   --> $DIR/diagnostic-derive.rs:62:8
49    |
50 LL | #[diag("E0123")]
51    |        ^^^^^^^
52    |
53    = help: a diagnostic slug is required as the first argument
54
55 error: diagnostic slug not specified
56   --> $DIR/diagnostic-derive.rs:62:1
57    |
58 LL | / #[diag("E0123")]
59 LL | |
60 LL | |
61 LL | | struct InvalidLitNestedAttr {}
62    | |______________________________^
63    |
64    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
65
66 error: `#[diag(nonsense(...))]` is not a valid attribute
67   --> $DIR/diagnostic-derive.rs:73:8
68    |
69 LL | #[diag(nonsense("foo"), code = "E0123", slug = "foo")]
70    |        ^^^^^^^^^^^^^^^
71    |
72    = help: a diagnostic slug is required as the first argument
73
74 error: diagnostic slug not specified
75   --> $DIR/diagnostic-derive.rs:73:1
76    |
77 LL | / #[diag(nonsense("foo"), code = "E0123", slug = "foo")]
78 LL | |
79 LL | |
80 LL | | struct InvalidNestedStructAttr1 {}
81    | |__________________________________^
82    |
83    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
84
85 error: `#[diag(nonsense = ...)]` is not a valid attribute
86   --> $DIR/diagnostic-derive.rs:79:8
87    |
88 LL | #[diag(nonsense = "...", code = "E0123", slug = "foo")]
89    |        ^^^^^^^^^^^^^^^^
90    |
91    = help: only `code` is a valid nested attributes following the slug
92
93 error: `#[diag(slug = ...)]` is not a valid attribute
94   --> $DIR/diagnostic-derive.rs:79:42
95    |
96 LL | #[diag(nonsense = "...", code = "E0123", slug = "foo")]
97    |                                          ^^^^^^^^^^^^
98    |
99    = help: only `code` is a valid nested attributes following the slug
100
101 error: diagnostic slug not specified
102   --> $DIR/diagnostic-derive.rs:79:1
103    |
104 LL | / #[diag(nonsense = "...", code = "E0123", slug = "foo")]
105 LL | |
106 LL | |
107 LL | |
108 LL | | struct InvalidNestedStructAttr2 {}
109    | |__________________________________^
110    |
111    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
112
113 error: `#[diag(nonsense = ...)]` is not a valid attribute
114   --> $DIR/diagnostic-derive.rs:86:8
115    |
116 LL | #[diag(nonsense = 4, code = "E0123", slug = "foo")]
117    |        ^^^^^^^^^^^^
118
119 error: `#[diag(slug = ...)]` is not a valid attribute
120   --> $DIR/diagnostic-derive.rs:86:38
121    |
122 LL | #[diag(nonsense = 4, code = "E0123", slug = "foo")]
123    |                                      ^^^^^^^^^^^^
124    |
125    = help: only `code` is a valid nested attributes following the slug
126
127 error: diagnostic slug not specified
128   --> $DIR/diagnostic-derive.rs:86:1
129    |
130 LL | / #[diag(nonsense = 4, code = "E0123", slug = "foo")]
131 LL | |
132 LL | |
133 LL | |
134 LL | | struct InvalidNestedStructAttr3 {}
135    | |__________________________________^
136    |
137    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
138
139 error: `#[diag(slug = ...)]` is not a valid attribute
140   --> $DIR/diagnostic-derive.rs:93:58
141    |
142 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0123", slug = "foo")]
143    |                                                          ^^^^^^^^^^^^
144    |
145    = help: only `code` is a valid nested attributes following the slug
146
147 error: `#[suggestion = ...]` is not a valid attribute
148   --> $DIR/diagnostic-derive.rs:100:5
149    |
150 LL |     #[suggestion = "bar"]
151    |     ^^^^^^^^^^^^^^^^^^^^^
152
153 error: specified multiple times
154   --> $DIR/diagnostic-derive.rs:107:8
155    |
156 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0456")]
157    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158    |
159 note: previously specified here
160   --> $DIR/diagnostic-derive.rs:106:8
161    |
162 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0123")]
163    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164
165 error: specified multiple times
166   --> $DIR/diagnostic-derive.rs:107:49
167    |
168 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0456")]
169    |                                                 ^^^^^^^
170    |
171 note: previously specified here
172   --> $DIR/diagnostic-derive.rs:106:49
173    |
174 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0123")]
175    |                                                 ^^^^^^^
176
177 error: specified multiple times
178   --> $DIR/diagnostic-derive.rs:113:65
179    |
180 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0456", code = "E0457")]
181    |                                                                 ^^^^^^^
182    |
183 note: previously specified here
184   --> $DIR/diagnostic-derive.rs:113:49
185    |
186 LL | #[diag(typeck::ambiguous_lifetime_bound, code = "E0456", code = "E0457")]
187    |                                                 ^^^^^^^
188
189 error: `#[diag(typeck::ambiguous_lifetime_bound)]` is not a valid attribute
190   --> $DIR/diagnostic-derive.rs:118:42
191    |
192 LL | #[diag(typeck::ambiguous_lifetime_bound, typeck::ambiguous_lifetime_bound, code = "E0456")]
193    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194    |
195    = help: diagnostic slug must be the first argument
196
197 error: diagnostic slug not specified
198   --> $DIR/diagnostic-derive.rs:123:1
199    |
200 LL | struct KindNotProvided {}
201    | ^^^^^^^^^^^^^^^^^^^^^^^^^
202    |
203    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
204
205 error: diagnostic slug not specified
206   --> $DIR/diagnostic-derive.rs:126:1
207    |
208 LL | / #[diag(code = "E0456")]
209 LL | |
210 LL | | struct SlugNotProvided {}
211    | |_________________________^
212    |
213    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
214
215 error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
216   --> $DIR/diagnostic-derive.rs:137:5
217    |
218 LL |     #[primary_span]
219    |     ^^^^^^^^^^^^^^^
220
221 error: `#[nonsense]` is not a valid attribute
222   --> $DIR/diagnostic-derive.rs:145:5
223    |
224 LL |     #[nonsense]
225    |     ^^^^^^^^^^^
226
227 error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
228   --> $DIR/diagnostic-derive.rs:162:5
229    |
230 LL |     #[label(typeck::label)]
231    |     ^^^^^^^^^^^^^^^^^^^^^^^
232
233 error: `name` doesn't refer to a field on this type
234   --> $DIR/diagnostic-derive.rs:170:45
235    |
236 LL |     #[suggestion(typeck::suggestion, code = "{name}")]
237    |                                             ^^^^^^^^
238
239 error: invalid format string: expected `'}'` but string was terminated
240   --> $DIR/diagnostic-derive.rs:175:10
241    |
242 LL | #[derive(Diagnostic)]
243    |          ^^^^^^^^^^ expected `'}'` in format string
244    |
245    = note: if you intended to print `{`, you can escape it using `{{`
246    = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
247
248 error: invalid format string: unmatched `}` found
249   --> $DIR/diagnostic-derive.rs:185:10
250    |
251 LL | #[derive(Diagnostic)]
252    |          ^^^^^^^^^^ unmatched `}` in format string
253    |
254    = note: if you intended to print `}`, you can escape it using `}}`
255    = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
256
257 error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
258   --> $DIR/diagnostic-derive.rs:205:5
259    |
260 LL |     #[label(typeck::label)]
261    |     ^^^^^^^^^^^^^^^^^^^^^^^
262
263 error: suggestion without `code = "..."`
264   --> $DIR/diagnostic-derive.rs:223:5
265    |
266 LL |     #[suggestion(typeck::suggestion)]
267    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
268
269 error: `#[suggestion(nonsense = ...)]` is not a valid attribute
270   --> $DIR/diagnostic-derive.rs:231:18
271    |
272 LL |     #[suggestion(nonsense = "bar")]
273    |                  ^^^^^^^^^^^^^^^^
274    |
275    = help: only `code` and `applicability` are valid nested attributes
276
277 error: suggestion without `code = "..."`
278   --> $DIR/diagnostic-derive.rs:231:5
279    |
280 LL |     #[suggestion(nonsense = "bar")]
281    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282
283 error: `#[suggestion(msg = ...)]` is not a valid attribute
284   --> $DIR/diagnostic-derive.rs:240:18
285    |
286 LL |     #[suggestion(msg = "bar")]
287    |                  ^^^^^^^^^^^
288    |
289    = help: only `code` and `applicability` are valid nested attributes
290
291 error: suggestion without `code = "..."`
292   --> $DIR/diagnostic-derive.rs:240:5
293    |
294 LL |     #[suggestion(msg = "bar")]
295    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
296
297 error: wrong field type for suggestion
298   --> $DIR/diagnostic-derive.rs:263:5
299    |
300 LL | /     #[suggestion(typeck::suggestion, code = "This is suggested code")]
301 LL | |
302 LL | |     suggestion: Applicability,
303    | |_____________________________^
304    |
305    = help: `#[suggestion(...)]` should be applied to fields of type `Span` or `(Span, Applicability)`
306
307 error: specified multiple times
308   --> $DIR/diagnostic-derive.rs:279:24
309    |
310 LL |     suggestion: (Span, Span, Applicability),
311    |                        ^^^^
312    |
313 note: previously specified here
314   --> $DIR/diagnostic-derive.rs:279:18
315    |
316 LL |     suggestion: (Span, Span, Applicability),
317    |                  ^^^^
318
319 error: specified multiple times
320   --> $DIR/diagnostic-derive.rs:287:33
321    |
322 LL |     suggestion: (Applicability, Applicability, Span),
323    |                                 ^^^^^^^^^^^^^
324    |
325 note: previously specified here
326   --> $DIR/diagnostic-derive.rs:287:18
327    |
328 LL |     suggestion: (Applicability, Applicability, Span),
329    |                  ^^^^^^^^^^^^^
330
331 error: `#[label = ...]` is not a valid attribute
332   --> $DIR/diagnostic-derive.rs:294:5
333    |
334 LL |     #[label = "bar"]
335    |     ^^^^^^^^^^^^^^^^
336
337 error: specified multiple times
338   --> $DIR/diagnostic-derive.rs:445:52
339    |
340 LL |     #[suggestion(typeck::suggestion, code = "...", applicability = "maybe-incorrect")]
341    |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
342    |
343 note: previously specified here
344   --> $DIR/diagnostic-derive.rs:447:24
345    |
346 LL |     suggestion: (Span, Applicability),
347    |                        ^^^^^^^^^^^^^
348
349 error: invalid applicability
350   --> $DIR/diagnostic-derive.rs:453:52
351    |
352 LL |     #[suggestion(typeck::suggestion, code = "...", applicability = "batman")]
353    |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^
354
355 error: `#[label(foo)]` is not a valid attribute
356   --> $DIR/diagnostic-derive.rs:516:28
357    |
358 LL |     #[label(typeck::label, foo)]
359    |                            ^^^
360    |
361    = help: a diagnostic slug must be the first argument to the attribute
362
363 error: `#[label(foo = ...)]` is not a valid attribute
364   --> $DIR/diagnostic-derive.rs:524:28
365    |
366 LL |     #[label(typeck::label, foo = "...")]
367    |                            ^^^^^^^^^^^
368
369 error: `#[label(foo(...))]` is not a valid attribute
370   --> $DIR/diagnostic-derive.rs:532:28
371    |
372 LL |     #[label(typeck::label, foo("..."))]
373    |                            ^^^^^^^^^^
374
375 error: `#[primary_span]` is not a valid attribute
376   --> $DIR/diagnostic-derive.rs:545:5
377    |
378 LL |     #[primary_span]
379    |     ^^^^^^^^^^^^^^^
380    |
381    = help: the `primary_span` field attribute is not valid for lint diagnostics
382
383 error: `#[error(...)]` is not a valid attribute
384   --> $DIR/diagnostic-derive.rs:565:1
385    |
386 LL | #[error(typeck::ambiguous_lifetime_bound, code = "E0123")]
387    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
388
389 error: diagnostic slug not specified
390   --> $DIR/diagnostic-derive.rs:565:1
391    |
392 LL | / #[error(typeck::ambiguous_lifetime_bound, code = "E0123")]
393 LL | |
394 LL | |
395 LL | |
396 LL | | struct ErrorAttribute {}
397    | |________________________^
398    |
399    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
400
401 error: `#[warn_(...)]` is not a valid attribute
402   --> $DIR/diagnostic-derive.rs:572:1
403    |
404 LL | #[warn_(typeck::ambiguous_lifetime_bound, code = "E0123")]
405    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
406
407 error: diagnostic slug not specified
408   --> $DIR/diagnostic-derive.rs:572:1
409    |
410 LL | / #[warn_(typeck::ambiguous_lifetime_bound, code = "E0123")]
411 LL | |
412 LL | |
413 LL | |
414 LL | | struct WarnAttribute {}
415    | |_______________________^
416    |
417    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
418
419 error: `#[lint(...)]` is not a valid attribute
420   --> $DIR/diagnostic-derive.rs:579:1
421    |
422 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
423    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
424
425 error: diagnostic slug not specified
426   --> $DIR/diagnostic-derive.rs:579:1
427    |
428 LL | / #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
429 LL | |
430 LL | |
431 LL | |
432 LL | | struct LintAttributeOnSessionDiag {}
433    | |____________________________________^
434    |
435    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
436
437 error: `#[lint(...)]` is not a valid attribute
438   --> $DIR/diagnostic-derive.rs:586:1
439    |
440 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
441    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
442
443 error: diagnostic slug not specified
444   --> $DIR/diagnostic-derive.rs:586:1
445    |
446 LL | / #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
447 LL | |
448 LL | |
449 LL | |
450 LL | | struct LintAttributeOnLintDiag {}
451    | |_________________________________^
452    |
453    = help: specify the slug as the first argument to the attribute, such as `#[diag(typeck::example_error)]`
454
455 error: specified multiple times
456   --> $DIR/diagnostic-derive.rs:595:52
457    |
458 LL |     #[suggestion(typeck::suggestion, code = "...", code = ",,,")]
459    |                                                    ^^^^^^^^^^^^
460    |
461 note: previously specified here
462   --> $DIR/diagnostic-derive.rs:595:38
463    |
464 LL |     #[suggestion(typeck::suggestion, code = "...", code = ",,,")]
465    |                                      ^^^^^^^^^^^^
466
467 error: wrong types for suggestion
468   --> $DIR/diagnostic-derive.rs:604:24
469    |
470 LL |     suggestion: (Span, usize),
471    |                        ^^^^^
472    |
473    = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
474
475 error: wrong types for suggestion
476   --> $DIR/diagnostic-derive.rs:612:17
477    |
478 LL |     suggestion: (Span,),
479    |                 ^^^^^^^
480    |
481    = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
482
483 error: suggestion without `code = "..."`
484   --> $DIR/diagnostic-derive.rs:619:5
485    |
486 LL |     #[suggestion(typeck::suggestion)]
487    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
488
489 error: `#[multipart_suggestion(...)]` is not a valid attribute
490   --> $DIR/diagnostic-derive.rs:626:1
491    |
492 LL | #[multipart_suggestion(typeck::suggestion)]
493    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
494    |
495    = help: consider creating a `Subdiagnostic` instead
496
497 error: `#[multipart_suggestion(...)]` is not a valid attribute
498   --> $DIR/diagnostic-derive.rs:629:1
499    |
500 LL | #[multipart_suggestion()]
501    | ^^^^^^^^^^^^^^^^^^^^^^^^^
502    |
503    = help: consider creating a `Subdiagnostic` instead
504
505 error: `#[multipart_suggestion(...)]` is not a valid attribute
506   --> $DIR/diagnostic-derive.rs:633:5
507    |
508 LL |     #[multipart_suggestion(typeck::suggestion)]
509    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
510    |
511    = help: consider creating a `Subdiagnostic` instead
512
513 error: `#[suggestion(...)]` is not a valid attribute
514   --> $DIR/diagnostic-derive.rs:641:1
515    |
516 LL | #[suggestion(typeck::suggestion, code = "...")]
517    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
518    |
519    = help: `#[label]` and `#[suggestion]` can only be applied to fields
520
521 error: `#[label]` is not a valid attribute
522   --> $DIR/diagnostic-derive.rs:650:1
523    |
524 LL | #[label]
525    | ^^^^^^^^
526    |
527    = help: `#[label]` and `#[suggestion]` can only be applied to fields
528
529 error: cannot find attribute `nonsense` in this scope
530   --> $DIR/diagnostic-derive.rs:55:3
531    |
532 LL | #[nonsense(typeck::ambiguous_lifetime_bound, code = "E0123")]
533    |   ^^^^^^^^
534
535 error: cannot find attribute `nonsense` in this scope
536   --> $DIR/diagnostic-derive.rs:145:7
537    |
538 LL |     #[nonsense]
539    |       ^^^^^^^^
540
541 error: cannot find attribute `error` in this scope
542   --> $DIR/diagnostic-derive.rs:565:3
543    |
544 LL | #[error(typeck::ambiguous_lifetime_bound, code = "E0123")]
545    |   ^^^^^
546
547 error: cannot find attribute `warn_` in this scope
548   --> $DIR/diagnostic-derive.rs:572:3
549    |
550 LL | #[warn_(typeck::ambiguous_lifetime_bound, code = "E0123")]
551    |   ^^^^^ help: a built-in attribute with a similar name exists: `warn`
552
553 error: cannot find attribute `lint` in this scope
554   --> $DIR/diagnostic-derive.rs:579:3
555    |
556 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
557    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
558
559 error: cannot find attribute `lint` in this scope
560   --> $DIR/diagnostic-derive.rs:586:3
561    |
562 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
563    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
564
565 error: cannot find attribute `multipart_suggestion` in this scope
566   --> $DIR/diagnostic-derive.rs:626:3
567    |
568 LL | #[multipart_suggestion(typeck::suggestion)]
569    |   ^^^^^^^^^^^^^^^^^^^^
570
571 error: cannot find attribute `multipart_suggestion` in this scope
572   --> $DIR/diagnostic-derive.rs:629:3
573    |
574 LL | #[multipart_suggestion()]
575    |   ^^^^^^^^^^^^^^^^^^^^
576
577 error: cannot find attribute `multipart_suggestion` in this scope
578   --> $DIR/diagnostic-derive.rs:633:7
579    |
580 LL |     #[multipart_suggestion(typeck::suggestion)]
581    |       ^^^^^^^^^^^^^^^^^^^^
582
583 error[E0425]: cannot find value `nonsense` in module `rustc_errors::fluent`
584   --> $DIR/diagnostic-derive.rs:68:8
585    |
586 LL | #[diag(nonsense, code = "E0123")]
587    |        ^^^^^^^^ not found in `rustc_errors::fluent`
588
589 error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
590   --> $DIR/diagnostic-derive.rs:338:10
591    |
592 LL | #[derive(Diagnostic)]
593    |          ^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello`
594    |
595    = help: normalized in stderr
596 note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
597   --> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
598    |
599 LL |         arg: impl IntoDiagnosticArg,
600    |                   ^^^^^^^^^^^^^^^^^ required by this bound in `DiagnosticBuilder::<'a, G>::set_arg`
601    = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
602
603 error: aborting due to 74 previous errors
604
605 Some errors have detailed explanations: E0277, E0425.
606 For more information about an error, try `rustc --explain E0277`.