]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-70724-add_type_neq_err_label-unwrap.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / issues / issue-70724-add_type_neq_err_label-unwrap.stderr
index f5a56d7553b4954c340aa52f1b954c1028dcd25a..20e4b1076812712611fb6e45b7edc70fb6ebbe55 100644 (file)
@@ -28,11 +28,14 @@ LL | fn a() -> i32 {
 ...
 LL |     assert_eq!(a, 0);
    |     ^^^^^^^^^^^^^^^^^ `fn() -> i32 {a}` cannot be formatted using `{:?}` because it doesn't implement `Debug`
+   | 
+  ::: $SRC_DIR/core/src/panicking.rs:LL:COL
+   |
+LL |     T: fmt::Debug + ?Sized,
+   |        ---------- required by this bound in `core::panicking::assert_failed`
    |
    = help: the trait `Debug` is not implemented for `fn() -> i32 {a}`
    = help: use parentheses to call the function: `a()`
-   = note: required because of the requirements on the impl of `Debug` for `&fn() -> i32 {a}`
-   = note: required by `std::fmt::Debug::fmt`
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to 3 previous errors