]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr
467b3ce7c77fda8d199745e4e9e0e48406e93139
[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(bad)]` is not a valid attribute
537   --> $DIR/diagnostic-derive.rs:685:21
538    |
539 LL |     #[subdiagnostic(bad)]
540    |                     ^^^
541    |
542    = help: `eager` is the only supported nested attribute for `subdiagnostic`
543
544 error: `#[subdiagnostic = ...]` is not a valid attribute
545   --> $DIR/diagnostic-derive.rs:693:5
546    |
547 LL |     #[subdiagnostic = "bad"]
548    |     ^^^^^^^^^^^^^^^^^^^^^^^^
549    |
550    = help: `eager` is the only supported nested attribute for `subdiagnostic`
551
552 error: `#[subdiagnostic(...)]` is not a valid attribute
553   --> $DIR/diagnostic-derive.rs:701:5
554    |
555 LL |     #[subdiagnostic(bad, bad)]
556    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
557    |
558    = help: `eager` is the only supported nested attribute for `subdiagnostic`
559
560 error: `#[subdiagnostic("...")]` is not a valid attribute
561   --> $DIR/diagnostic-derive.rs:709:21
562    |
563 LL |     #[subdiagnostic("bad")]
564    |                     ^^^^^
565    |
566    = help: `eager` is the only supported nested attribute for `subdiagnostic`
567
568 error: `#[subdiagnostic(...)]` is not a valid attribute
569   --> $DIR/diagnostic-derive.rs:717:5
570    |
571 LL |     #[subdiagnostic(eager)]
572    |     ^^^^^^^^^^^^^^^^^^^^^^^
573    |
574    = help: eager subdiagnostics are not supported on lints
575
576 error: expected at least one string literal for `code(...)`
577   --> $DIR/diagnostic-derive.rs:775:18
578    |
579 LL |     #[suggestion(code())]
580    |                  ^^^^^^
581
582 error: `code(...)` must contain only string literals
583   --> $DIR/diagnostic-derive.rs:783:23
584    |
585 LL |     #[suggestion(code(foo))]
586    |                       ^^^
587
588 error: `code = "..."`/`code(...)` must contain only string literals
589   --> $DIR/diagnostic-derive.rs:791:18
590    |
591 LL |     #[suggestion(code = 3)]
592    |                  ^^^^^^^^
593
594 error: cannot find attribute `nonsense` in this scope
595   --> $DIR/diagnostic-derive.rs:55:3
596    |
597 LL | #[nonsense(compiletest_example, code = "E0123")]
598    |   ^^^^^^^^
599
600 error: cannot find attribute `nonsense` in this scope
601   --> $DIR/diagnostic-derive.rs:145:7
602    |
603 LL |     #[nonsense]
604    |       ^^^^^^^^
605
606 error: cannot find attribute `error` in this scope
607   --> $DIR/diagnostic-derive.rs:565:3
608    |
609 LL | #[error(compiletest_example, code = "E0123")]
610    |   ^^^^^
611
612 error: cannot find attribute `warn_` in this scope
613   --> $DIR/diagnostic-derive.rs:572:3
614    |
615 LL | #[warn_(compiletest_example, code = "E0123")]
616    |   ^^^^^ help: a built-in attribute with a similar name exists: `warn`
617
618 error: cannot find attribute `lint` in this scope
619   --> $DIR/diagnostic-derive.rs:579:3
620    |
621 LL | #[lint(compiletest_example, code = "E0123")]
622    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
623
624 error: cannot find attribute `lint` in this scope
625   --> $DIR/diagnostic-derive.rs:586:3
626    |
627 LL | #[lint(compiletest_example, code = "E0123")]
628    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
629
630 error: cannot find attribute `multipart_suggestion` in this scope
631   --> $DIR/diagnostic-derive.rs:627:3
632    |
633 LL | #[multipart_suggestion(suggestion)]
634    |   ^^^^^^^^^^^^^^^^^^^^
635
636 error: cannot find attribute `multipart_suggestion` in this scope
637   --> $DIR/diagnostic-derive.rs:630:3
638    |
639 LL | #[multipart_suggestion()]
640    |   ^^^^^^^^^^^^^^^^^^^^
641
642 error: cannot find attribute `multipart_suggestion` in this scope
643   --> $DIR/diagnostic-derive.rs:634:7
644    |
645 LL |     #[multipart_suggestion(suggestion)]
646    |       ^^^^^^^^^^^^^^^^^^^^
647
648 error[E0425]: cannot find value `nonsense` in module `rustc_errors::fluent`
649   --> $DIR/diagnostic-derive.rs:68:8
650    |
651 LL | #[diag(nonsense, code = "E0123")]
652    |        ^^^^^^^^ not found in `rustc_errors::fluent`
653
654 error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
655   --> $DIR/diagnostic-derive.rs:339:10
656    |
657 LL | #[derive(Diagnostic)]
658    |          ^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello`
659    |
660    = help: normalized in stderr
661 note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
662   --> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
663    |
664    = note: required by this bound in `DiagnosticBuilder::<'a, G>::set_arg`
665    = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
666
667 error: aborting due to 83 previous errors
668
669 Some errors have detailed explanations: E0277, E0425.
670 For more information about an error, try `rustc --explain E0277`.