about summary refs log tree commit diff
path: root/tests/ui/rfcs
diff options
context:
space:
mode:
authormejrs <59372212+mejrs@users.noreply.github.com>2025-06-16 17:51:29 +0200
committermejrs <59372212+mejrs@users.noreply.github.com>2025-06-22 10:58:25 +0200
commitb1d18129d199c095372c39f75a5c3fb31ea166c2 (patch)
tree69928d1509b5793acd55ca47b2bdee18038d11d2 /tests/ui/rfcs
parent8051f012658fde822bfc661b52e90950b411e5c9 (diff)
downloadrust-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.stderr3
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)]`
    |