diff options
| author | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-06-17 19:37:29 +0200 |
|---|---|---|
| committer | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-06-22 10:58:27 +0200 |
| commit | 29ce695cd4e148682b0d439cc47dd36edb494673 (patch) | |
| tree | 1b3bbc40f475a5ffd4ff7a39878312178aa51733 /tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs | |
| parent | b1d18129d199c095372c39f75a5c3fb31ea166c2 (diff) | |
| download | rust-29ce695cd4e148682b0d439cc47dd36edb494673.tar.gz rust-29ce695cd4e148682b0d439cc47dd36edb494673.zip | |
Stop dbg! macro yapping about format modifiers
Diffstat (limited to 'tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs')
| -rw-r--r-- | tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs b/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs index f2fb62d76f3..fe71f106fdf 100644 --- a/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs +++ b/tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs @@ -1,4 +1,7 @@ // Test ensuring that `dbg!(expr)` requires the passed type to implement `Debug`. +// +// `dbg!` shouldn't tell the user about format literal syntax; the user didn't write one. +//@ forbid-output: cannot be formatted using struct NotDebug; |
