]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr
Rollup merge of #102347 - nnethercote:unescaping-cleanups, r=matklad
[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:16
241    |
242 LL | #[derive(Diagnostic)]
243    |           -    ^ expected `'}'` in format string
244    |           |
245    |           because of this opening brace
246    |
247    = note: if you intended to print `{`, you can escape it using `{{`
248    = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
249
250 error: invalid format string: unmatched `}` found
251   --> $DIR/diagnostic-derive.rs:185:15
252    |
253 LL | #[derive(Diagnostic)]
254    |               ^ unmatched `}` in format string
255    |
256    = note: if you intended to print `}`, you can escape it using `}}`
257    = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
258
259 error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
260   --> $DIR/diagnostic-derive.rs:205:5
261    |
262 LL |     #[label(typeck::label)]
263    |     ^^^^^^^^^^^^^^^^^^^^^^^
264
265 error: suggestion without `code = "..."`
266   --> $DIR/diagnostic-derive.rs:223:5
267    |
268 LL |     #[suggestion(typeck::suggestion)]
269    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
270
271 error: `#[suggestion(nonsense = ...)]` is not a valid attribute
272   --> $DIR/diagnostic-derive.rs:231:18
273    |
274 LL |     #[suggestion(nonsense = "bar")]
275    |                  ^^^^^^^^^^^^^^^^
276    |
277    = help: only `code` and `applicability` are valid nested attributes
278
279 error: suggestion without `code = "..."`
280   --> $DIR/diagnostic-derive.rs:231:5
281    |
282 LL |     #[suggestion(nonsense = "bar")]
283    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
284
285 error: `#[suggestion(msg = ...)]` is not a valid attribute
286   --> $DIR/diagnostic-derive.rs:240:18
287    |
288 LL |     #[suggestion(msg = "bar")]
289    |                  ^^^^^^^^^^^
290    |
291    = help: only `code` and `applicability` are valid nested attributes
292
293 error: suggestion without `code = "..."`
294   --> $DIR/diagnostic-derive.rs:240:5
295    |
296 LL |     #[suggestion(msg = "bar")]
297    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
298
299 error: wrong field type for suggestion
300   --> $DIR/diagnostic-derive.rs:263:5
301    |
302 LL | /     #[suggestion(typeck::suggestion, code = "This is suggested code")]
303 LL | |
304 LL | |     suggestion: Applicability,
305    | |_____________________________^
306    |
307    = help: `#[suggestion(...)]` should be applied to fields of type `Span` or `(Span, Applicability)`
308
309 error: specified multiple times
310   --> $DIR/diagnostic-derive.rs:279:24
311    |
312 LL |     suggestion: (Span, Span, Applicability),
313    |                        ^^^^
314    |
315 note: previously specified here
316   --> $DIR/diagnostic-derive.rs:279:18
317    |
318 LL |     suggestion: (Span, Span, Applicability),
319    |                  ^^^^
320
321 error: specified multiple times
322   --> $DIR/diagnostic-derive.rs:287:33
323    |
324 LL |     suggestion: (Applicability, Applicability, Span),
325    |                                 ^^^^^^^^^^^^^
326    |
327 note: previously specified here
328   --> $DIR/diagnostic-derive.rs:287:18
329    |
330 LL |     suggestion: (Applicability, Applicability, Span),
331    |                  ^^^^^^^^^^^^^
332
333 error: `#[label = ...]` is not a valid attribute
334   --> $DIR/diagnostic-derive.rs:294:5
335    |
336 LL |     #[label = "bar"]
337    |     ^^^^^^^^^^^^^^^^
338
339 error: specified multiple times
340   --> $DIR/diagnostic-derive.rs:445:52
341    |
342 LL |     #[suggestion(typeck::suggestion, code = "...", applicability = "maybe-incorrect")]
343    |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
344    |
345 note: previously specified here
346   --> $DIR/diagnostic-derive.rs:447:24
347    |
348 LL |     suggestion: (Span, Applicability),
349    |                        ^^^^^^^^^^^^^
350
351 error: invalid applicability
352   --> $DIR/diagnostic-derive.rs:453:52
353    |
354 LL |     #[suggestion(typeck::suggestion, code = "...", applicability = "batman")]
355    |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^
356
357 error: `#[label(foo)]` is not a valid attribute
358   --> $DIR/diagnostic-derive.rs:516:28
359    |
360 LL |     #[label(typeck::label, foo)]
361    |                            ^^^
362    |
363    = help: a diagnostic slug must be the first argument to the attribute
364
365 error: `#[label(foo = ...)]` is not a valid attribute
366   --> $DIR/diagnostic-derive.rs:524:28
367    |
368 LL |     #[label(typeck::label, foo = "...")]
369    |                            ^^^^^^^^^^^
370
371 error: `#[label(foo(...))]` is not a valid attribute
372   --> $DIR/diagnostic-derive.rs:532:28
373    |
374 LL |     #[label(typeck::label, foo("..."))]
375    |                            ^^^^^^^^^^
376
377 error: `#[primary_span]` is not a valid attribute
378   --> $DIR/diagnostic-derive.rs:545:5
379    |
380 LL |     #[primary_span]
381    |     ^^^^^^^^^^^^^^^
382    |
383    = help: the `primary_span` field attribute is not valid for lint diagnostics
384
385 error: `#[error(...)]` is not a valid attribute
386   --> $DIR/diagnostic-derive.rs:565:1
387    |
388 LL | #[error(typeck::ambiguous_lifetime_bound, code = "E0123")]
389    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
390
391 error: diagnostic slug not specified
392   --> $DIR/diagnostic-derive.rs:565:1
393    |
394 LL | / #[error(typeck::ambiguous_lifetime_bound, code = "E0123")]
395 LL | |
396 LL | |
397 LL | |
398 LL | | struct ErrorAttribute {}
399    | |________________________^
400    |
401    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
402
403 error: `#[warn_(...)]` is not a valid attribute
404   --> $DIR/diagnostic-derive.rs:572:1
405    |
406 LL | #[warn_(typeck::ambiguous_lifetime_bound, code = "E0123")]
407    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
408
409 error: diagnostic slug not specified
410   --> $DIR/diagnostic-derive.rs:572:1
411    |
412 LL | / #[warn_(typeck::ambiguous_lifetime_bound, code = "E0123")]
413 LL | |
414 LL | |
415 LL | |
416 LL | | struct WarnAttribute {}
417    | |_______________________^
418    |
419    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
420
421 error: `#[lint(...)]` is not a valid attribute
422   --> $DIR/diagnostic-derive.rs:579:1
423    |
424 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
425    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
426
427 error: diagnostic slug not specified
428   --> $DIR/diagnostic-derive.rs:579:1
429    |
430 LL | / #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
431 LL | |
432 LL | |
433 LL | |
434 LL | | struct LintAttributeOnSessionDiag {}
435    | |____________________________________^
436    |
437    = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(typeck::example_error)]`
438
439 error: `#[lint(...)]` is not a valid attribute
440   --> $DIR/diagnostic-derive.rs:586:1
441    |
442 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
443    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
444
445 error: diagnostic slug not specified
446   --> $DIR/diagnostic-derive.rs:586:1
447    |
448 LL | / #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
449 LL | |
450 LL | |
451 LL | |
452 LL | | struct LintAttributeOnLintDiag {}
453    | |_________________________________^
454    |
455    = help: specify the slug as the first argument to the attribute, such as `#[diag(typeck::example_error)]`
456
457 error: specified multiple times
458   --> $DIR/diagnostic-derive.rs:595:52
459    |
460 LL |     #[suggestion(typeck::suggestion, code = "...", code = ",,,")]
461    |                                                    ^^^^^^^^^^^^
462    |
463 note: previously specified here
464   --> $DIR/diagnostic-derive.rs:595:38
465    |
466 LL |     #[suggestion(typeck::suggestion, code = "...", code = ",,,")]
467    |                                      ^^^^^^^^^^^^
468
469 error: wrong types for suggestion
470   --> $DIR/diagnostic-derive.rs:604:24
471    |
472 LL |     suggestion: (Span, usize),
473    |                        ^^^^^
474    |
475    = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
476
477 error: wrong types for suggestion
478   --> $DIR/diagnostic-derive.rs:612:17
479    |
480 LL |     suggestion: (Span,),
481    |                 ^^^^^^^
482    |
483    = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
484
485 error: suggestion without `code = "..."`
486   --> $DIR/diagnostic-derive.rs:619:5
487    |
488 LL |     #[suggestion(typeck::suggestion)]
489    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
490
491 error: `#[multipart_suggestion(...)]` is not a valid attribute
492   --> $DIR/diagnostic-derive.rs:626:1
493    |
494 LL | #[multipart_suggestion(typeck::suggestion)]
495    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
496    |
497    = help: consider creating a `Subdiagnostic` instead
498
499 error: `#[multipart_suggestion(...)]` is not a valid attribute
500   --> $DIR/diagnostic-derive.rs:629:1
501    |
502 LL | #[multipart_suggestion()]
503    | ^^^^^^^^^^^^^^^^^^^^^^^^^
504    |
505    = help: consider creating a `Subdiagnostic` instead
506
507 error: `#[multipart_suggestion(...)]` is not a valid attribute
508   --> $DIR/diagnostic-derive.rs:633:5
509    |
510 LL |     #[multipart_suggestion(typeck::suggestion)]
511    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
512    |
513    = help: consider creating a `Subdiagnostic` instead
514
515 error: `#[suggestion(...)]` is not a valid attribute
516   --> $DIR/diagnostic-derive.rs:641:1
517    |
518 LL | #[suggestion(typeck::suggestion, code = "...")]
519    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
520    |
521    = help: `#[label]` and `#[suggestion]` can only be applied to fields
522
523 error: `#[label]` is not a valid attribute
524   --> $DIR/diagnostic-derive.rs:650:1
525    |
526 LL | #[label]
527    | ^^^^^^^^
528    |
529    = help: `#[label]` and `#[suggestion]` can only be applied to fields
530
531 error: cannot find attribute `nonsense` in this scope
532   --> $DIR/diagnostic-derive.rs:55:3
533    |
534 LL | #[nonsense(typeck::ambiguous_lifetime_bound, code = "E0123")]
535    |   ^^^^^^^^
536
537 error: cannot find attribute `nonsense` in this scope
538   --> $DIR/diagnostic-derive.rs:145:7
539    |
540 LL |     #[nonsense]
541    |       ^^^^^^^^
542
543 error: cannot find attribute `error` in this scope
544   --> $DIR/diagnostic-derive.rs:565:3
545    |
546 LL | #[error(typeck::ambiguous_lifetime_bound, code = "E0123")]
547    |   ^^^^^
548
549 error: cannot find attribute `warn_` in this scope
550   --> $DIR/diagnostic-derive.rs:572:3
551    |
552 LL | #[warn_(typeck::ambiguous_lifetime_bound, code = "E0123")]
553    |   ^^^^^ help: a built-in attribute with a similar name exists: `warn`
554
555 error: cannot find attribute `lint` in this scope
556   --> $DIR/diagnostic-derive.rs:579:3
557    |
558 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
559    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
560
561 error: cannot find attribute `lint` in this scope
562   --> $DIR/diagnostic-derive.rs:586:3
563    |
564 LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
565    |   ^^^^ help: a built-in attribute with a similar name exists: `link`
566
567 error: cannot find attribute `multipart_suggestion` in this scope
568   --> $DIR/diagnostic-derive.rs:626:3
569    |
570 LL | #[multipart_suggestion(typeck::suggestion)]
571    |   ^^^^^^^^^^^^^^^^^^^^
572
573 error: cannot find attribute `multipart_suggestion` in this scope
574   --> $DIR/diagnostic-derive.rs:629:3
575    |
576 LL | #[multipart_suggestion()]
577    |   ^^^^^^^^^^^^^^^^^^^^
578
579 error: cannot find attribute `multipart_suggestion` in this scope
580   --> $DIR/diagnostic-derive.rs:633:7
581    |
582 LL |     #[multipart_suggestion(typeck::suggestion)]
583    |       ^^^^^^^^^^^^^^^^^^^^
584
585 error[E0425]: cannot find value `nonsense` in module `rustc_errors::fluent`
586   --> $DIR/diagnostic-derive.rs:68:8
587    |
588 LL | #[diag(nonsense, code = "E0123")]
589    |        ^^^^^^^^ not found in `rustc_errors::fluent`
590
591 error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
592   --> $DIR/diagnostic-derive.rs:338:10
593    |
594 LL | #[derive(Diagnostic)]
595    |          ^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello`
596    |
597    = help: normalized in stderr
598 note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
599   --> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
600    |
601 LL |         arg: impl IntoDiagnosticArg,
602    |                   ^^^^^^^^^^^^^^^^^ required by this bound in `DiagnosticBuilder::<'a, G>::set_arg`
603    = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
604
605 error: aborting due to 74 previous errors
606
607 Some errors have detailed explanations: E0277, E0425.
608 For more information about an error, try `rustc --explain E0277`.