about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-04 19:42:09 +0100
committerGitHub <noreply@github.com>2024-02-04 19:42:09 +0100
commit6af04583a6ede7b70b36026ecd6ba1ad9c481724 (patch)
tree72b3b69e42dc7d879bc055ab8a889b4928330d37 /tests/rustdoc-js-std/parser-errors.js
parent2b259577aa6b2cfe291d78c30b92cc2ecb2d5430 (diff)
parent0df6dfdc78624282b4193fc2290ba79d26ba6db3 (diff)
downloadrust-6af04583a6ede7b70b36026ecd6ba1ad9c481724.tar.gz
rust-6af04583a6ede7b70b36026ecd6ba1ad9c481724.zip
Rollup merge of #120323 - estebank:issue-120178, r=fmease
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/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions