diff options
Diffstat (limited to 'vendor/indoc/tests/ui/printdoc-no-display.stderr')
-rw-r--r-- | vendor/indoc/tests/ui/printdoc-no-display.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/indoc/tests/ui/printdoc-no-display.stderr b/vendor/indoc/tests/ui/printdoc-no-display.stderr new file mode 100644 index 000000000..1e0fee569 --- /dev/null +++ b/vendor/indoc/tests/ui/printdoc-no-display.stderr @@ -0,0 +1,9 @@ +error[E0277]: `NoDisplay` doesn't implement `std::fmt::Display` + --> tests/ui/printdoc-no-display.rs:6:21 + | +6 | printdoc!("{}", NoDisplay); + | ^^^^^^^^^ `NoDisplay` cannot be formatted with the default formatter + | + = help: the trait `std::fmt::Display` is not implemented for `NoDisplay` + = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead + = note: this error originates in the macro `$crate::format_args` (in Nightly builds, run with -Z macro-backtrace for more info) |