1 error: mismatched closing delimiter: `}`
2 --> $DIR/constrain-suggest-ice.rs:2:8
5 | - closing delimiter possibly meant for this
10 | ^ mismatched closing delimiter
12 error: mismatched closing delimiter: `}`
13 --> $DIR/constrain-suggest-ice.rs:2:8
16 | - closing delimiter possibly meant for this
18 | ^ unclosed delimiter
21 | ^ mismatched closing delimiter
23 error[E0425]: cannot find value `F` in this scope
24 --> $DIR/constrain-suggest-ice.rs:6:9
29 help: a local variable with a similar name exists
33 help: you might be missing a type parameter
35 LL | struct Bug<S, F>{
38 error: generic `Self` types are currently not permitted in anonymous constants
39 --> $DIR/constrain-suggest-ice.rs:3:21
41 LL | let x: [u8; Self::W] = [0; Self::W];
44 error: generic `Self` types are currently not permitted in anonymous constants
45 --> $DIR/constrain-suggest-ice.rs:3:36
47 LL | let x: [u8; Self::W] = [0; Self::W];
50 error[E0277]: the size for values of type `S` cannot be known at compilation time
51 --> $DIR/constrain-suggest-ice.rs:3:36
54 | - this type parameter needs to be `std::marker::Sized`
56 LL | let x: [u8; Self::W] = [0; Self::W];
57 | ^^^^^^^ doesn't have a size known at compile-time
59 note: required by a bound in `Bug`
60 --> $DIR/constrain-suggest-ice.rs:1:12
63 | ^ required by this bound in `Bug`
64 help: consider relaxing the implicit `Sized` restriction
66 LL | struct Bug<S: ?Sized>{
69 error[E0392]: parameter `S` is never used
70 --> $DIR/constrain-suggest-ice.rs:1:12
75 = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
76 = help: if you intended `S` to be a const parameter, use `const S: usize` instead
78 error: aborting due to 7 previous errors
80 Some errors have detailed explanations: E0277, E0392, E0425.
81 For more information about an error, try `rustc --explain E0277`.