diff options
| author | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-06-16 17:51:29 +0200 |
|---|---|---|
| committer | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-06-22 10:58:25 +0200 |
| commit | b1d18129d199c095372c39f75a5c3fb31ea166c2 (patch) | |
| tree | 69928d1509b5793acd55ca47b2bdee18038d11d2 /tests/ui/rfcs | |
| parent | 8051f012658fde822bfc661b52e90950b411e5c9 (diff) | |
| download | rust-b1d18129d199c095372c39f75a5c3fb31ea166c2.tar.gz rust-b1d18129d199c095372c39f75a5c3fb31ea166c2.zip | |
Implement DesugaringKind::FormatLiteral
Diffstat (limited to 'tests/ui/rfcs')
| -rw-r--r-- | tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr b/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr index 7ec018a95cc..190db042994 100644 --- a/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr +++ b/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr @@ -2,10 +2,11 @@ error[E0277]: `NotDebug` doesn't implement `Debug` --> $DIR/dbg-macro-requires-debug.rs:6:23 | LL | let _: NotDebug = dbg!(NotDebug); - | ^^^^^^^^^^^^^^ `NotDebug` cannot be formatted using `{:?}` + | ^^^^^^^^^^^^^^ `NotDebug` cannot be formatted using `{:?}` because it doesn't implement `Debug` | = help: the trait `Debug` is not implemented for `NotDebug` = note: add `#[derive(Debug)]` to `NotDebug` or manually `impl Debug for NotDebug` + = note: required for `&NotDebug` to implement `Debug` = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider annotating `NotDebug` with `#[derive(Debug)]` | |
