2021-05-27 15:42:07 -05:00
|
|
|
error[E0080]: evaluation of `Inline::<dyn std::fmt::Debug>::{constant#0}` failed
|
2021-01-21 11:10:40 -06:00
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
|
|
|
|
|
2022-12-09 09:56:23 -06:00
|
|
|
= note: size_of called on unsized type `dyn Debug`
|
2022-11-29 07:10:42 -06:00
|
|
|
|
|
|
|
|
note: inside `std::mem::size_of::<dyn Debug>`
|
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
|
|
|
note: inside `Inline::<dyn Debug>::{constant#0}`
|
|
|
|
--> $DIR/issue-80742.rs:22:10
|
2021-01-21 11:10:40 -06:00
|
|
|
|
|
|
|
|
LL | [u8; size_of::<T>() + 1]: ,
|
2022-11-29 07:10:42 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
2021-01-21 11:10:40 -06:00
|
|
|
|
2020-09-26 16:20:14 -05:00
|
|
|
error[E0599]: the function or associated item `new` exists for struct `Inline<dyn Debug>`, but its trait bounds were not satisfied
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/issue-80742.rs:30:36
|
2021-01-19 01:11:24 -06:00
|
|
|
|
|
2022-06-20 10:43:20 -05:00
|
|
|
LL | struct Inline<T>
|
2022-07-01 18:47:26 -05:00
|
|
|
| ---------------- function or associated item `new` not found for this struct
|
2021-01-19 01:11:24 -06:00
|
|
|
...
|
2022-06-20 10:43:20 -05:00
|
|
|
LL | let dst = Inline::<dyn Debug>::new(0);
|
|
|
|
| ^^^ function or associated item cannot be called on `Inline<dyn Debug>` due to unsatisfied trait bounds
|
2022-12-09 09:56:23 -06:00
|
|
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2022-12-09 09:56:23 -06:00
|
|
|
= note: doesn't satisfy `dyn Debug: Sized`
|
2021-01-19 01:11:24 -06:00
|
|
|
|
|
2023-01-10 21:07:14 -06:00
|
|
|
note: trait bound `dyn Debug: Sized` was not satisfied
|
|
|
|
--> $DIR/issue-80742.rs:20:6
|
|
|
|
|
|
|
|
|
LL | impl<T> Inline<T>
|
|
|
|
| ^ ---------
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
|
|
|
help: consider relaxing the type parameter's implicit `Sized` bound
|
|
|
|
|
|
|
|
|
LL | impl<T: ?Sized> Inline<T>
|
|
|
|
| ++++++++
|
2021-01-19 01:11:24 -06:00
|
|
|
|
2021-05-27 15:42:07 -05:00
|
|
|
error[E0080]: evaluation of `Inline::<dyn std::fmt::Debug>::{constant#0}` failed
|
2021-01-21 11:10:40 -06:00
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
|
|
|
|
|
2022-12-09 09:56:23 -06:00
|
|
|
= note: size_of called on unsized type `dyn Debug`
|
2022-11-29 07:10:42 -06:00
|
|
|
|
|
|
|
|
note: inside `std::mem::size_of::<dyn Debug>`
|
|
|
|
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
|
|
|
note: inside `Inline::<dyn Debug>::{constant#0}`
|
|
|
|
--> $DIR/issue-80742.rs:14:10
|
2021-01-21 11:10:40 -06:00
|
|
|
|
|
|
|
|
LL | [u8; size_of::<T>() + 1]: ,
|
2022-11-29 07:10:42 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
2021-01-21 11:10:40 -06:00
|
|
|
|
2021-01-19 01:11:24 -06:00
|
|
|
error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/issue-80742.rs:30:15
|
2021-01-19 01:11:24 -06:00
|
|
|
|
|
|
|
|
LL | let dst = Inline::<dyn Debug>::new(0);
|
2021-03-13 10:14:18 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2021-01-19 01:11:24 -06:00
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `dyn Debug`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `Inline`
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/issue-80742.rs:12:15
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
LL | struct Inline<T>
|
|
|
|
| ^ required by this bound in `Inline`
|
2021-01-19 01:11:24 -06:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | struct Inline<T: ?Sized>
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++++++++
|
2021-01-19 01:11:24 -06:00
|
|
|
|
2021-01-21 11:10:40 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2021-01-19 01:11:24 -06:00
|
|
|
|
2021-01-21 11:10:40 -06:00
|
|
|
Some errors have detailed explanations: E0080, E0277, E0599.
|
|
|
|
For more information about an error, try `rustc --explain E0080`.
|