]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr
Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank
[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(compiletest_example, 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(hir_analysis_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(hir_analysis_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(compiletest_example, code = "E0123")]
33    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
35 error: diagnostic slug not specified
36   --> $DIR/diagnostic-derive.rs:55:1
37    |
38 LL | / #[nonsense(compiletest_example, 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(hir_analysis_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(hir_analysis_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(hir_analysis_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(hir_analysis_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(hir_analysis_example_error)]`
138
139 error: `#[diag(slug = ...)]` is not a valid attribute
140   --> $DIR/diagnostic-derive.rs:93:45
141    |
142 LL | #[diag(compiletest_example, 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(compiletest_example, code = "E0456")]
157    |        ^^^^^^^^^^^^^^^^^^^
158    |
159 note: previously specified here
160   --> $DIR/diagnostic-derive.rs:106:8
161    |
162 LL | #[diag(compiletest_example, code = "E0123")]
163    |        ^^^^^^^^^^^^^^^^^^^
164
165 error: specified multiple times
166   --> $DIR/diagnostic-derive.rs:107:36
167    |
168 LL | #[diag(compiletest_example, code = "E0456")]
169    |                                    ^^^^^^^
170    |
171 note: previously specified here
172   --> $DIR/diagnostic-derive.rs:106:36
173    |
174 LL | #[diag(compiletest_example, code = "E0123")]
175    |                                    ^^^^^^^
176
177 error: specified multiple times
178   --> $DIR/diagnostic-derive.rs:113:52
179    |
180 LL | #[diag(compiletest_example, code = "E0456", code = "E0457")]
181    |                                                    ^^^^^^^
182    |
183 note: previously specified here
184   --> $DIR/diagnostic-derive.rs:113:36
185    |
186 LL | #[diag(compiletest_example, code = "E0456", code = "E0457")]
187    |                                    ^^^^^^^
188
189 error: `#[diag(compiletest_example)]` is not a valid attribute
190   --> $DIR/diagnostic-derive.rs:118:29
191    |
192 LL | #[diag(compiletest_example, compiletest_example, 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(hir_analysis_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(hir_analysis_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(label)]
231    |     ^^^^^^^^^^^^^^^
232
233 error: `name` doesn't refer to a field on this type
234   --> $DIR/diagnostic-derive.rs:170:37
235    |
236 LL |     #[suggestion(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(label)]
261    |     ^^^^^^^^^^^^^^^
262
263 error: suggestion without `code = "..."`
264   --> $DIR/diagnostic-derive.rs:224:5
265    |
266 LL |     #[suggestion(suggestion)]
267    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
268
269 error: `#[suggestion(nonsense = ...)]` is not a valid attribute
270   --> $DIR/diagnostic-derive.rs:232:18
271    |
272 LL |     #[suggestion(nonsense = "bar")]
273    |                  ^^^^^^^^^^^^^^^^
274    |
275    = help: only `style`, `code` and `applicability` are valid nested attributes
276
277 error: suggestion without `code = "..."`
278   --> $DIR/diagnostic-derive.rs:232:5
279    |
280 LL |     #[suggestion(nonsense = "bar")]
281    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282
283 error: `#[suggestion(msg = ...)]` is not a valid attribute
284   --> $DIR/diagnostic-derive.rs:241:18
285    |
286 LL |     #[suggestion(msg = "bar")]
287    |                  ^^^^^^^^^^^
288    |
289    = help: only `style`, `code` and `applicability` are valid nested attributes
290
291 error: suggestion without `code = "..."`
292   --> $DIR/diagnostic-derive.rs:241:5
293    |
294 LL |     #[suggestion(msg = "bar")]
295    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
296
297 error: wrong field type for suggestion
298   --> $DIR/diagnostic-derive.rs:264:5
299    |
300 LL | /     #[suggestion(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:280:24
309    |
310 LL |     suggestion: (Span, Span, Applicability),
311    |                        ^^^^
312    |
313 note: previously specified here
314   --> $DIR/diagnostic-derive.rs:280:18
315    |
316 LL |     suggestion: (Span, Span, Applicability),
317    |                  ^^^^
318
319 error: specified multiple times
320   --> $DIR/diagnostic-derive.rs:288:33
321    |
322 LL |     suggestion: (Applicability, Applicability, Span),
323    |                                 ^^^^^^^^^^^^^
324    |
325 note: previously specified here
326   --> $DIR/diagnostic-derive.rs:288:18
327    |
328 LL |     suggestion: (Applicability, Applicability, Span),
329    |                  ^^^^^^^^^^^^^
330
331 error: `#[label = ...]` is not a valid attribute
332   --> $DIR/diagnostic-derive.rs:295:5
333    |
334 LL |     #[label = "bar"]
335    |     ^^^^^^^^^^^^^^^^
336
337 error: specified multiple times
338   --> $DIR/diagnostic-derive.rs:446:44
339    |
340 LL |     #[suggestion(suggestion, code = "...", applicability = "maybe-incorrect")]
341    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
342    |
343 note: previously specified here
344   --> $DIR/diagnostic-derive.rs:448:24
345    |
346 LL |     suggestion: (Span, Applicability),
347    |                        ^^^^^^^^^^^^^
348
349 error: invalid applicability
350   --> $DIR/diagnostic-derive.rs:454:44
351    |
352 LL |     #[suggestion(suggestion, code = "...", applicability = "batman")]
353    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^
354
355 error: `#[label(foo)]` is not a valid attribute
356   --> $DIR/diagnostic-derive.rs:517:20
357    |
358 LL |     #[label(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:525:20
365    |
366 LL |     #[label(label, foo = "...")]
367    |                    ^^^^^^^^^^^
368
369 error: `#[label(foo(...))]` is not a valid attribute
370   --> $DIR/diagnostic-derive.rs:533:20
371    |
372 LL |     #[label(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(compiletest_example, code = "E0123")]
387    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
388
389 error: diagnostic slug not specified
390   --> $DIR/diagnostic-derive.rs:565:1
391    |
392 LL | / #[error(compiletest_example, 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(hir_analysis_example_error)]`
400
401 error: `#[warn_(...)]` is not a valid attribute
402   --> $DIR/diagnostic-derive.rs:572:1
403    |
404 LL | #[warn_(compiletest_example, code = "E0123")]
405    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
406
407 error: diagnostic slug not specified
408   --> $DIR/diagnostic-derive.rs:572:1
409    |
410 LL | / #[warn_(compiletest_example, 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(hir_analysis_example_error)]`
418
419 error: `#[lint(...)]` is not a valid attribute
420   --> $DIR/diagnostic-derive.rs:579:1
421    |
422 LL | #[lint(compiletest_example, code = "E0123")]
423    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
424
425 error: diagnostic slug not specified
426   --> $DIR/diagnostic-derive.rs:579:1
427    |
428 LL | / #[lint(compiletest_example, 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(hir_analysis_example_error)]`
436
437 error: `#[lint(...)]` is not a valid attribute
438   --> $DIR/diagnostic-derive.rs:586:1
439    |
440 LL | #[lint(compiletest_example, code = "E0123")]
441    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
442
443 error: `#[lint(...)]` is not a valid attribute
444   --> $DIR/diagnostic-derive.rs:586:1
445    |
446 LL | #[lint(compiletest_example, code = "E0123")]
447    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
448
449 error: diagnostic slug not specified
450   --> $DIR/diagnostic-derive.rs:586:1
451    |
452 LL | / #[lint(compiletest_example, code = "E0123")]
453 LL | |
454 LL | |
455 LL | |
456 LL | |
457 LL | | struct LintAttributeOnLintDiag {}
458    | |_________________________________^
459    |
460    = help: specify the slug as the first argument to the attribute, such as `#[diag(compiletest_example)]`
461
462 error: specified multiple times
463   --> $DIR/diagnostic-derive.rs:596:44
464    |
465 LL |     #[suggestion(suggestion, code = "...", code = ",,,")]
466    |                                            ^^^^^^^^^^^^
467    |
468 note: previously specified here
469   --> $DIR/diagnostic-derive.rs:596:30
470    |
471 LL |     #[suggestion(suggestion, code = "...", code = ",,,")]
472    |                              ^^^^^^^^^^^^
473
474 error: wrong types for suggestion
475   --> $DIR/diagnostic-derive.rs:605:24
476    |
477 LL |     suggestion: (Span, usize),
478    |                        ^^^^^
479    |
480    = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
481
482 error: wrong types for suggestion
483   --> $DIR/diagnostic-derive.rs:613:17
484    |
485 LL |     suggestion: (Span,),
486    |                 ^^^^^^^
487    |
488    = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
489
490 error: suggestion without `code = "..."`
491   --> $DIR/diagnostic-derive.rs:620:5
492    |
493 LL |     #[suggestion(suggestion)]
494    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
495
496 error: `#[multipart_suggestion(...)]` is not a valid attribute
497   --> $DIR/diagnostic-derive.rs:627:1
498    |
499 LL | #[multipart_suggestion(suggestion)]
500    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
501    |
502    = help: consider creating a `Subdiagnostic` instead
503
504 error: `#[multipart_suggestion(...)]` is not a valid attribute
505   --> $DIR/diagnostic-derive.rs:630:1
506    |
507 LL | #[multipart_suggestion()]
508    | ^^^^^^^^^^^^^^^^^^^^^^^^^
509    |
510    = help: consider creating a `Subdiagnostic` instead
511
512 error: `#[multipart_suggestion(...)]` is not a valid attribute
513   --> $DIR/diagnostic-derive.rs:634:5
514    |
515 LL |     #[multipart_suggestion(suggestion)]
516    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
517    |
518    = help: consider creating a `Subdiagnostic` instead
519
520 error: `#[suggestion(...)]` is not a valid attribute
521   --> $DIR/diagnostic-derive.rs:642:1
522    |
523 LL | #[suggestion(suggestion, code = "...")]
524    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
525    |
526    = help: `#[label]` and `#[suggestion]` can only be applied to fields
527
528 error: `#[label]` is not a valid attribute
529   --> $DIR/diagnostic-derive.rs:651:1
530    |
531 LL | #[label]
532    | ^^^^^^^^
533    |
534    = help: `#[label]` and `#[suggestion]` can only be applied to fields
535
536 error: `#[subdiagnostic(...)]` is not a valid attribute
537   --> $DIR/diagnostic-derive.rs:685:5
538    |
539 LL |     #[subdiagnostic(bad)]
540    |     ^^^^^^^^^^^^^^^^^^^^^
541    |
542    = help: `subdiagnostic` does not support nested attributes
543
544 error: `#[subdiagnostic = ...]` is not a valid attribute
545   --> $DIR/diagnostic-derive.rs:693:5
546    |
547 LL |     #[subdiagnostic = "bad"]
548    |     ^^^^^^^^^^^^^^^^^^^^^^^^
549
550 error: `#[subdiagnostic(...)]` is not a valid attribute
551   --> $DIR/diagnostic-derive.rs:701:5
552    |
553 LL |     #[subdiagnostic(bad, bad)]
554    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
555    |
556    = help: `subdiagnostic` does not support nested attributes
557
558 error: `#[subdiagnostic(...)]` is not a valid attribute
559   --> $DIR/diagnostic-derive.rs:709:5
560    |
561 LL |     #[subdiagnostic("bad")]
562    |     ^^^^^^^^^^^^^^^^^^^^^^^
563    |
564    = help: `subdiagnostic` does not support nested attributes
565
566 error: `#[subdiagnostic(...)]` is not a valid attribute
567   --> $DIR/diagnostic-derive.rs:717:5
568    |
569 LL |     #[subdiagnostic(eager)]
570    |     ^^^^^^^^^^^^^^^^^^^^^^^
571    |
572    = help: `subdiagnostic` does not support nested attributes
573
574 error: `#[subdiagnostic(...)]` is not a valid attribute
575   --> $DIR/diagnostic-derive.rs:725:5
576    |
577 LL |     #[subdiagnostic(eager)]
578    |     ^^^^^^^^^^^^^^^^^^^^^^^
579    |
580    = help: `subdiagnostic` does not support nested attributes
581
582 error: `#[subdiagnostic(...)]` is not a valid attribute
583   --> $DIR/diagnostic-derive.rs:746:5
584    |
585 LL |     #[subdiagnostic(eager)]
586    |     ^^^^^^^^^^^^^^^^^^^^^^^
587    |
588    = help: `subdiagnostic` does not support nested attributes
589
590 error: expected at least one string literal for `code(...)`
591   --> $DIR/diagnostic-derive.rs:777:18
592    |
593 LL |     #[suggestion(code())]
594    |                  ^^^^^^
595
596 error: `code(...)` must contain only string literals
597   --> $DIR/diagnostic-derive.rs:785:23
598    |
599 LL |     #[suggestion(code(foo))]
600    |                       ^^^
601
602 error: `code = "..."`/`code(...)` must contain only string literals
603   --> $DIR/diagnostic-derive.rs:793:18
604    |
605 LL |     #[suggestion(code = 3)]
606    |                  ^^^^^^^^
607
608 error: cannot find attribute `nonsense` in this scope
609   --> $DIR/diagnostic-derive.rs:55:3
610    |
611 LL | #[nonsense(compiletest_example, code = "E0123")]
612    |   ^^^^^^^^
613
614 error: cannot find attribute `nonsense` in this scope
615   --> $DIR/diagnostic-derive.rs:145:7
616    |
617 LL |     #[nonsense]
618    |       ^^^^^^^^
619
620 error: cannot find attribute `error` in this scope
621   --> $DIR/diagnostic-derive.rs:565:3
622    |
623 LL | #[error(compiletest_example, code = "E0123")]
624    |   ^^^^^
625
626 error: cannot find attribute `warn_` in this scope
627   --> $DIR/diagnostic-derive.rs:572:3
628    |
629 LL | #[warn_(compiletest_example, code = "E0123")]
630    |   ^^^^^ help: a built-in attribute with a similar name exists: `warn`
631
632 error: cannot find attribute `lint` in this scope
633   --> $DIR/diagnostic-derive.rs:579:3
634    |
635 LL | #[lint(compiletest_example, code = "E0123")]
636    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
637
638 error: cannot find attribute `lint` in this scope
639   --> $DIR/diagnostic-derive.rs:586:3
640    |
641 LL | #[lint(compiletest_example, code = "E0123")]
642    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
643
644 error: cannot find attribute `multipart_suggestion` in this scope
645   --> $DIR/diagnostic-derive.rs:627:3
646    |
647 LL | #[multipart_suggestion(suggestion)]
648    |   ^^^^^^^^^^^^^^^^^^^^
649
650 error: cannot find attribute `multipart_suggestion` in this scope
651   --> $DIR/diagnostic-derive.rs:630:3
652    |
653 LL | #[multipart_suggestion()]
654    |   ^^^^^^^^^^^^^^^^^^^^
655
656 error: cannot find attribute `multipart_suggestion` in this scope
657   --> $DIR/diagnostic-derive.rs:634:7
658    |
659 LL |     #[multipart_suggestion(suggestion)]
660    |       ^^^^^^^^^^^^^^^^^^^^
661
662 error[E0425]: cannot find value `nonsense` in module `rustc_errors::fluent`
663   --> $DIR/diagnostic-derive.rs:68:8
664    |
665 LL | #[diag(nonsense, code = "E0123")]
666    |        ^^^^^^^^ not found in `rustc_errors::fluent`
667
668 error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
669   --> $DIR/diagnostic-derive.rs:339:10
670    |
671 LL | #[derive(Diagnostic)]
672    |          ^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello`
673    |
674    = help: normalized in stderr
675 note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
676   --> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
677    = note: this error originates in the derive macro `Diagnostic` which comes from the expansion of the macro `forward` (in Nightly builds, run with -Z macro-backtrace for more info)
678
679 error: aborting due to 85 previous errors
680
681 Some errors have detailed explanations: E0277, E0425.
682 For more information about an error, try `rustc --explain E0277`.