aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/no-display.stderr
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-10-26 13:16:48 -0700
committerChih-Hung Hsieh <chh@google.com>2020-10-26 13:16:48 -0700
commit5cf648bae004ce55273acaa39d3a24e678ab8146 (patch)
tree8edd33862debc1f7325810d7fae6adc564860285 /tests/ui/no-display.stderr
parent5f9ea56f1fb2767d5857a77bb79ca6156bbd7315 (diff)
downloadthiserror-5cf648bae004ce55273acaa39d3a24e678ab8146.tar.gz
Upgrade rust/crates/thiserror to 1.0.21
Test: make Change-Id: I300ce88b2a670247c9efa8e699a7d29855a05fd3
Diffstat (limited to 'tests/ui/no-display.stderr')
-rw-r--r--tests/ui/no-display.stderr21
1 files changed, 12 insertions, 9 deletions
diff --git a/tests/ui/no-display.stderr b/tests/ui/no-display.stderr
index 6a59def..b1a0c49 100644
--- a/tests/ui/no-display.stderr
+++ b/tests/ui/no-display.stderr
@@ -1,9 +1,12 @@
-error[E0599]: no method named `as_display` found for reference `&std::thread::Thread` in the current scope
- --> $DIR/no-display.rs:5:9
- |
-5 | #[error("thread: {thread}")]
- | ^^^^^^^^^^^^^^^^^^ method not found in `&std::thread::Thread`
- |
- = note: the method `as_display` exists but the following trait bounds were not satisfied:
- `std::thread::Thread: std::fmt::Display`
- which is required by `&std::thread::Thread: thiserror::display::DisplayAsDisplay`
+error[E0599]: no method named `as_display` found for reference `&NoDisplay` in the current scope
+ --> $DIR/no-display.rs:7:9
+ |
+4 | struct NoDisplay;
+ | ----------------- doesn't satisfy `NoDisplay: std::fmt::Display`
+...
+7 | #[error("thread: {thread}")]
+ | ^^^^^^^^^^^^^^^^^^ method not found in `&NoDisplay`
+ |
+ = note: the method `as_display` exists but the following trait bounds were not satisfied:
+ `NoDisplay: std::fmt::Display`
+ which is required by `&NoDisplay: DisplayAsDisplay`