diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-07-23 18:47:53 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2021-07-30 08:44:31 -0700 |
| commit | 15a40c7ee85fff41f34a2b70c28cca3bcdec1015 (patch) | |
| tree | 1a732d38fc28716a9f4c3a6eb72ae2f5badd0300 /src/test/ui/packed | |
| parent | 5fb3394cbdf0622c9d0c292feb55db0f4c828dc3 (diff) | |
Do not discard `?Sized` type params and suggest their removal
Diffstat (limited to 'src/test/ui/packed')
| -rw-r--r-- | src/test/ui/packed/issue-27060-2.stderr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/packed/issue-27060-2.stderr b/src/test/ui/packed/issue-27060-2.stderr index 5dbcc96e874..64e061a89b4 100644 --- a/src/test/ui/packed/issue-27060-2.stderr +++ b/src/test/ui/packed/issue-27060-2.stderr @@ -8,6 +8,10 @@ LL | data: T, | = note: the last field of a packed struct may only have a dynamically sized type if it does not need drop to be run = help: change the field's type to have a statically known size +help: consider removing the `?Sized` bound to make the type parameter `Sized` + | +LL | pub struct Bad<T> { + | -- help: borrowed types always have a statically known size | LL | data: &T, |
