diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-12 20:28:57 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-01-12 22:25:30 +0000 |
| commit | 5924c2511e43dd077df78d9936ccd0d76168ad30 (patch) | |
| tree | e37dddc14fe997b1da19c30318cd4de3bb57a304 /tests/ui/builtin-superkinds | |
| parent | 2aabb0fd5da283129205acb9c3e4d70a01238a93 (diff) | |
| download | rust-5924c2511e43dd077df78d9936ccd0d76168ad30.tar.gz rust-5924c2511e43dd077df78d9936ccd0d76168ad30.zip | |
Only point at impl self ty in WF if trait predicate shares self ty
Diffstat (limited to 'tests/ui/builtin-superkinds')
| -rw-r--r-- | tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr b/tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr index e51fab0dcea..e2b177b951c 100644 --- a/tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr +++ b/tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr @@ -1,8 +1,8 @@ error[E0310]: the parameter type `T` may not live long enough - --> $DIR/builtin-superkinds-self-type.rs:10:24 + --> $DIR/builtin-superkinds-self-type.rs:10:16 | LL | impl <T: Sync> Foo for T { } - | ^ ...so that the type `T` will meet its required lifetime bounds... + | ^^^ ...so that the type `T` will meet its required lifetime bounds... | note: ...that is required by this bound --> $DIR/builtin-superkinds-self-type.rs:6:24 |
