From 3f3705978ecd616f11e2b9a54b676fb5aad94bd0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 30 Mar 2022 19:31:36 -0700 Subject: [PATCH] Update ui test suite to nightly-2022-03-31 --- tests/ui/result_no_display.stderr | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/ui/result_no_display.stderr b/tests/ui/result_no_display.stderr index 44d4b31d..a3a4e73a 100644 --- a/tests/ui/result_no_display.stderr +++ b/tests/ui/result_no_display.stderr @@ -6,3 +6,12 @@ error[E0277]: `NonError` doesn't implement `std::fmt::Display` | = help: the trait `std::fmt::Display` is not implemented for `NonError` = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead + +error[E0277]: `NonError` doesn't implement `std::fmt::Display` + --> tests/ui/result_no_display.rs:4:12 + | +4 | fn f() -> Result<()>; + | ^ `NonError` cannot be formatted with the default formatter + | + = help: the trait `std::fmt::Display` is not implemented for `NonError` + = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead