mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
error[E0277]: the trait bound `NotIntoDiagnosticArg: IntoDiagnosticArg` is not satisfied
|
|
--> $DIR/diagnostic-derive-doc-comment-field.rs:37:10
|
|
|
|
|
LL | #[derive(Diagnostic)]
|
|
| ---------- required by a bound introduced by this call
|
|
...
|
|
LL | arg: NotIntoDiagnosticArg,
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `NotIntoDiagnosticArg`
|
|
|
|
|
= help: normalized in stderr
|
|
note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
|
|
--> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
|
|
= note: this error originates in the macro `forward` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error[E0277]: the trait bound `NotIntoDiagnosticArg: IntoDiagnosticArg` is not satisfied
|
|
--> $DIR/diagnostic-derive-doc-comment-field.rs:47:10
|
|
|
|
|
LL | #[derive(Subdiagnostic)]
|
|
| ------------- required by a bound introduced by this call
|
|
...
|
|
LL | arg: NotIntoDiagnosticArg,
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `NotIntoDiagnosticArg`
|
|
|
|
|
= help: normalized in stderr
|
|
note: required by a bound in `Diagnostic::set_arg`
|
|
--> $COMPILER_DIR/rustc_errors/src/diagnostic.rs:LL:CC
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|