diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-01-24 21:29:15 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-02-01 03:30:26 +0000 |
| commit | c4c22b0d52e9699edd02fd3a7a61965f296ba605 (patch) | |
| tree | e648928fe6e6127f2522d43ef9a38ada7c8cef36 /tests/ui/traits/next-solver/overflow/recursive-self-normalization.stderr | |
| parent | 11f32b73e0dc9287e305b5b9980d24aecdc8c17f (diff) | |
| download | rust-c4c22b0d52e9699edd02fd3a7a61965f296ba605.tar.gz rust-c4c22b0d52e9699edd02fd3a7a61965f296ba605.zip | |
On E0277 be clearer about implicit `Sized` bounds on type params and assoc types
```
error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
--> f100.rs:2:33
|
2 | let _ = std::mem::size_of::<[i32]>();
| ^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[i32]`
note: required by an implicit `Sized` bound in `std::mem::size_of`
--> /home/gh-estebank/rust/library/core/src/mem/mod.rs:312:22
|
312 | pub const fn size_of<T>() -> usize {
| ^ required by the implicit `Sized` requirement on this bound in `size_of`
```
Fix #120178.
Diffstat (limited to 'tests/ui/traits/next-solver/overflow/recursive-self-normalization.stderr')
0 files changed, 0 insertions, 0 deletions
