1
+ error[E0080]: evaluation of constant value failed
2
+ --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
3
+ |
4
+ LL | intrinsics::size_of::<T>()
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
6
+ | |
7
+ | size_of called on unsized type `dyn Debug`
8
+ | inside `std::mem::size_of::<dyn Debug>` at $SRC_DIR/core/src/mem/mod.rs:LL:COL
9
+ |
10
+ ::: $DIR/issue-80742.rs:23:10
11
+ |
12
+ LL | [u8; size_of::<T>() + 1]: ,
13
+ | -------------- inside `Inline::<dyn Debug>::{constant#0}` at $DIR/issue-80742.rs:23:10
14
+
1
15
error[E0599]: no function or associated item named `new` found for struct `Inline<dyn Debug>` in the current scope
2
16
--> $DIR/issue-80742.rs:31:36
3
17
|
@@ -21,6 +35,20 @@ LL | pub trait Debug {
21
35
= note: the method `new` exists but the following trait bounds were not satisfied:
22
36
`dyn Debug: Sized`
23
37
38
+ error[E0080]: evaluation of constant value failed
39
+ --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
40
+ |
41
+ LL | intrinsics::size_of::<T>()
42
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
43
+ | |
44
+ | size_of called on unsized type `dyn Debug`
45
+ | inside `std::mem::size_of::<dyn Debug>` at $SRC_DIR/core/src/mem/mod.rs:LL:COL
46
+ |
47
+ ::: $DIR/issue-80742.rs:15:10
48
+ |
49
+ LL | [u8; size_of::<T>() + 1]: ,
50
+ | -------------- inside `Inline::<dyn Debug>::{constant#0}` at $DIR/issue-80742.rs:15:10
51
+
24
52
error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
25
53
--> $DIR/issue-80742.rs:31:15
26
54
|
@@ -36,7 +64,7 @@ help: consider relaxing the implicit `Sized` restriction
36
64
LL | struct Inline<T: ?Sized>
37
65
| ^^^^^^^^
38
66
39
- error: aborting due to 2 previous errors
67
+ error: aborting due to 4 previous errors
40
68
41
- Some errors have detailed explanations: E0277, E0599.
42
- For more information about an error, try `rustc --explain E0277 `.
69
+ Some errors have detailed explanations: E0080, E0277, E0599.
70
+ For more information about an error, try `rustc --explain E0080 `.
0 commit comments