blob: 477eb2786799a5d9320e5ed5b210dfef659c3af8 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
error: mismatched closing delimiter: `}`
--> $DIR/constrain-suggest-ice.rs:2:8
|
LL | struct Bug<S>{
| - closing delimiter possibly meant for this
LL | A: [(); {
| ^ unclosed delimiter
...
LL | }
| ^ mismatched closing delimiter
error: mismatched closing delimiter: `}`
--> $DIR/constrain-suggest-ice.rs:2:8
|
LL | struct Bug<S>{
| - closing delimiter possibly meant for this
LL | A: [(); {
| ^ unclosed delimiter
...
LL | }
| ^ mismatched closing delimiter
error[E0425]: cannot find value `F` in this scope
--> $DIR/constrain-suggest-ice.rs:6:9
|
LL | F
| ^
|
help: a local variable with a similar name exists
|
LL | x
| ~
help: you might be missing a type parameter
|
LL | struct Bug<S, F>{
| +++
error: generic `Self` types are currently not permitted in anonymous constants
--> $DIR/constrain-suggest-ice.rs:3:21
|
LL | let x: [u8; Self::W] = [0; Self::W];
| ^^^^
error: generic `Self` types are currently not permitted in anonymous constants
--> $DIR/constrain-suggest-ice.rs:3:36
|
LL | let x: [u8; Self::W] = [0; Self::W];
| ^^^^
error[E0277]: the size for values of type `S` cannot be known at compilation time
--> $DIR/constrain-suggest-ice.rs:3:36
|
LL | struct Bug<S>{
| - this type parameter needs to be `std::marker::Sized`
LL | A: [(); {
LL | let x: [u8; Self::W] = [0; Self::W];
| ^^^^^^^ doesn't have a size known at compile-time
|
note: required by a bound in `Bug`
--> $DIR/constrain-suggest-ice.rs:1:12
|
LL | struct Bug<S>{
| ^ required by this bound in `Bug`
help: consider relaxing the implicit `Sized` restriction
|
LL | struct Bug<S: ?Sized>{
| ++++++++
error[E0392]: parameter `S` is never used
--> $DIR/constrain-suggest-ice.rs:1:12
|
LL | struct Bug<S>{
| ^ unused parameter
|
= help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
= help: if you intended `S` to be a const parameter, use `const S: usize` instead
error: aborting due to 7 previous errors
Some errors have detailed explanations: E0277, E0392, E0425.
For more information about an error, try `rustc --explain E0277`.
|