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
27 | ^ help: a local variable with a similar name exists: `x`
29 error: generic `Self` types are currently not permitted in anonymous constants
30 --> $DIR/constrain-suggest-ice.rs:3:21
32 LL | let x: [u8; Self::W] = [0; Self::W];
35 error: generic `Self` types are currently not permitted in anonymous constants
36 --> $DIR/constrain-suggest-ice.rs:3:36
38 LL | let x: [u8; Self::W] = [0; Self::W];
41 error[E0277]: the size for values of type `S` cannot be known at compilation time
42 --> $DIR/constrain-suggest-ice.rs:3:36
45 | - this type parameter needs to be `std::marker::Sized`
47 LL | let x: [u8; Self::W] = [0; Self::W];
48 | ^^^^^^^ doesn't have a size known at compile-time
50 note: required by a bound in `Bug`
51 --> $DIR/constrain-suggest-ice.rs:1:12
54 | ^ required by this bound in `Bug`
55 help: consider relaxing the implicit `Sized` restriction
57 LL | struct Bug<S: ?Sized>{
60 error[E0392]: parameter `S` is never used
61 --> $DIR/constrain-suggest-ice.rs:1:12
66 = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
67 = help: if you intended `S` to be a const parameter, use `const S: usize` instead
69 error: aborting due to 7 previous errors
71 Some errors have detailed explanations: E0277, E0392, E0425.
72 For more information about an error, try `rustc --explain E0277`.