about summary refs log tree commit diff
path: root/tests/ui/span
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/span
parent8051f012658fde822bfc661b52e90950b411e5c9 (diff)
downloadrust-b1d18129d199c095372c39f75a5c3fb31ea166c2.tar.gz
rust-b1d18129d199c095372c39f75a5c3fb31ea166c2.zip
Implement DesugaringKind::FormatLiteral
Diffstat (limited to 'tests/ui/span')
-rw-r--r--tests/ui/span/issue-71363.stderr7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/ui/span/issue-71363.stderr b/tests/ui/span/issue-71363.stderr
index 90b623e89cf..31069914daa 100644
--- a/tests/ui/span/issue-71363.stderr
+++ b/tests/ui/span/issue-71363.stderr
@@ -2,10 +2,8 @@ error[E0277]: `MyError` doesn't implement `std::fmt::Display`
  --> $DIR/issue-71363.rs:4:28
   |
 4 | impl std::error::Error for MyError {}
-  |                            ^^^^^^^ `MyError` cannot be formatted with the default formatter
+  |                            ^^^^^^^ the trait `std::fmt::Display` is not implemented for `MyError`
   |
-  = help: the trait `std::fmt::Display` is not implemented for `MyError`
-  = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
 note: required by a bound in `std::error::Error`
  --> $SRC_DIR/core/src/error.rs:LL:COL
 
@@ -13,9 +11,8 @@ error[E0277]: `MyError` doesn't implement `Debug`
  --> $DIR/issue-71363.rs:4:28
   |
 4 | impl std::error::Error for MyError {}
-  |                            ^^^^^^^ `MyError` cannot be formatted using `{:?}`
+  |                            ^^^^^^^ the trait `Debug` is not implemented for `MyError`
   |
-  = help: the trait `Debug` is not implemented for `MyError`
   = note: add `#[derive(Debug)]` to `MyError` or manually `impl Debug for MyError`
 note: required by a bound in `std::error::Error`
  --> $SRC_DIR/core/src/error.rs:LL:COL