summaryrefslogtreecommitdiffstats
path: root/tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr (renamed from src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr)16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr b/tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr
index 9e94aa2c7..968e285af 100644
--- a/src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr
+++ b/tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr
@@ -7,20 +7,16 @@ LL | struct Foo<T> {
LL | self.foo();
| ^^^ method cannot be called on `&Foo<T>` due to unsatisfied trait bounds
|
-note: trait bound `T: Default` was not satisfied
+note: the following trait bounds were not satisfied:
+ `T: Bar`
+ `T: Default`
--> $DIR/missing-trait-bounds-for-method-call.rs:10:9
|
LL | impl<T: Default + Bar> Bar for Foo<T> {}
- | ^^^^^^^ --- ------
- | |
+ | ^^^^^^^ ^^^ --- ------
+ | | |
+ | | unsatisfied trait bound introduced here
| unsatisfied trait bound introduced here
-note: trait bound `T: Bar` was not satisfied
- --> $DIR/missing-trait-bounds-for-method-call.rs:10:19
- |
-LL | impl<T: Default + Bar> Bar for Foo<T> {}
- | ^^^ --- ------
- | |
- | unsatisfied trait bound introduced here
help: consider restricting the type parameters to satisfy the trait bounds
|
LL | struct Foo<T> where T: Bar, T: Default {