blob: 4aea63329b360e541f59c37c311473f2f7ac0143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
error[E0277]: the size for values of type `[()]` cannot be known at compilation time
--> $DIR/trivial-unsized-projection.rs:20:12
|
LL | const FOO: <[()] as Bad>::Assert = todo!();
| ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[()]`
note: required by a bound in `Bad::Assert`
--> $DIR/trivial-unsized-projection.rs:14:15
|
LL | type Assert
| ------ required by a bound in this associated type
LL | where
LL | Self: Sized;
| ^^^^^ required by this bound in `Bad::Assert`
help: consider relaxing the implicit `Sized` restriction
|
LL | type Assert: ?Sized
| ++++++++
error[E0277]: the size for values of type `[()]` cannot be known at compilation time
--> $DIR/trivial-unsized-projection.rs:20:12
|
LL | const FOO: <[()] as Bad>::Assert = todo!();
| ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[()]`
note: required by a bound in `Bad::Assert`
--> $DIR/trivial-unsized-projection.rs:14:15
|
LL | type Assert
| ------ required by a bound in this associated type
LL | where
LL | Self: Sized;
| ^^^^^ required by this bound in `Bad::Assert`
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
help: consider relaxing the implicit `Sized` restriction
|
LL | type Assert: ?Sized
| ++++++++
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
|