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/issues | |
| 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/issues')
| -rw-r--r-- | tests/ui/issues/issue-10412.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/issues/issue-10412.stderr b/tests/ui/issues/issue-10412.stderr index ebaf87630fe..46b9fd541ad 100644 --- a/tests/ui/issues/issue-10412.stderr +++ b/tests/ui/issues/issue-10412.stderr @@ -53,10 +53,10 @@ LL | impl<'self> Serializable<'_, str> for &'self str { | +++ error[E0277]: the size for values of type `str` cannot be known at compilation time - --> $DIR/issue-10412.rs:7:35 + --> $DIR/issue-10412.rs:7:13 | LL | impl<'self> Serializable<str> for &'self str { - | ^^^^^^^^^^ doesn't have a size known at compile-time + | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `str` note: required by a bound in `Serializable` |
