You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#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`
```
Fixrust-lang#120178.
Copy file name to clipboardExpand all lines: tests/ui/closures/issue-111932.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ LL | println!("{:?}", foo);
17
17
| required by a bound introduced by this call
18
18
|
19
19
= help: the trait `Sized` is not implemented for `dyn Foo`
20
-
note: required by a bound in `core::fmt::rt::Argument::<'a>::new_debug`
20
+
note: required by an implicit `Sized` bound in `core::fmt::rt::Argument::<'a>::new_debug`
21
21
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
22
22
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments