about summary refs log tree commit diff
path: root/src/test/ui/consts
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-07-01 16:47:26 -0700
committerEsteban Küber <esteban@kuber.com.ar>2022-07-07 12:15:12 -0700
commitaf10a456c19c447ff2bff585537d52a8d532bd86 (patch)
treedfb4e9c247c42c7c495430f03b9bdda1013e749f /src/test/ui/consts
parentd5642acfe689ca704b8572ea8ca88e43aeb70a11 (diff)
Track implicit `Sized` obligations in type params
Suggest adding a `?Sized` bound if appropriate on E0599 by inspecting
the HIR Generics. (Fix #98539)
Diffstat (limited to 'src/test/ui/consts')
-rw-r--r--src/test/ui/consts/const-needs_drop-monomorphic.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-needs_drop-monomorphic.stderr b/src/test/ui/consts/const-needs_drop-monomorphic.stderr
index 4399db11665..0874a70ce39 100644
--- a/src/test/ui/consts/const-needs_drop-monomorphic.stderr
+++ b/src/test/ui/consts/const-needs_drop-monomorphic.stderr
@@ -2,7 +2,7 @@ error[E0599]: no function or associated item named `assert` found for struct `Bo
   --> $DIR/const-needs_drop-monomorphic.rs:11:46
    |
 LL | struct Bool<const B: bool> {}
-   |        ---- function or associated item `assert` not found for this struct
+   | -------------------------- function or associated item `assert` not found for this struct
 ...
 LL |     Bool::<{ std::mem::needs_drop::<T>() }>::assert();
    |                                              ^^^^^^ function or associated item cannot be called on `Bool<{ std::mem::needs_drop::<T>() }>` due to unsatisfied trait bounds