@@ -4,7 +4,7 @@ error: unconstrained generic constant
4
4
LL | let _ = const_evaluatable_lib::test1::<T>();
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
7
+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
8
8
--> $DIR/auxiliary/const_evaluatable_lib.rs:6:10
9
9
|
10
10
LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
@@ -16,7 +16,7 @@ error: unconstrained generic constant
16
16
LL | let _ = const_evaluatable_lib::test1::<T>();
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
18
|
19
- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
19
+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
20
20
--> $DIR/auxiliary/const_evaluatable_lib.rs:4:27
21
21
|
22
22
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
@@ -28,7 +28,7 @@ error: unconstrained generic constant
28
28
LL | let _ = const_evaluatable_lib::test1::<T>();
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
|
31
- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
31
+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
32
32
--> $DIR/auxiliary/const_evaluatable_lib.rs:6:10
33
33
|
34
34
LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
@@ -40,7 +40,7 @@ error: unconstrained generic constant
40
40
LL | let _ = const_evaluatable_lib::test1::<T>();
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
42
|
43
- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
43
+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
44
44
--> $DIR/auxiliary/const_evaluatable_lib.rs:4:27
45
45
|
46
46
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
0 commit comments