]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/constrain-suggest-ice.stderr
Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
[rust.git] / tests / ui / suggestions / constrain-suggest-ice.stderr
1 error: mismatched closing delimiter: `}`
2   --> $DIR/constrain-suggest-ice.rs:2:8
3    |
4 LL | struct Bug<S>{
5    |              - closing delimiter possibly meant for this
6 LL |     A: [(); {
7    |        ^ unclosed delimiter
8 ...
9 LL | }
10    | ^ mismatched closing delimiter
11
12 error: mismatched closing delimiter: `}`
13   --> $DIR/constrain-suggest-ice.rs:2:8
14    |
15 LL | struct Bug<S>{
16    |              - closing delimiter possibly meant for this
17 LL |     A: [(); {
18    |        ^ unclosed delimiter
19 ...
20 LL | }
21    | ^ mismatched closing delimiter
22
23 error[E0425]: cannot find value `F` in this scope
24   --> $DIR/constrain-suggest-ice.rs:6:9
25    |
26 LL |         F
27    |         ^ help: a local variable with a similar name exists: `x`
28
29 error: generic `Self` types are currently not permitted in anonymous constants
30   --> $DIR/constrain-suggest-ice.rs:3:21
31    |
32 LL |         let x: [u8; Self::W] = [0; Self::W];
33    |                     ^^^^
34
35 error: generic `Self` types are currently not permitted in anonymous constants
36   --> $DIR/constrain-suggest-ice.rs:3:36
37    |
38 LL |         let x: [u8; Self::W] = [0; Self::W];
39    |                                    ^^^^
40
41 error[E0277]: the size for values of type `S` cannot be known at compilation time
42   --> $DIR/constrain-suggest-ice.rs:3:36
43    |
44 LL | struct Bug<S>{
45    |            - this type parameter needs to be `std::marker::Sized`
46 LL |     A: [(); {
47 LL |         let x: [u8; Self::W] = [0; Self::W];
48    |                                    ^^^^^^^ doesn't have a size known at compile-time
49    |
50 note: required by a bound in `Bug`
51   --> $DIR/constrain-suggest-ice.rs:1:12
52    |
53 LL | struct Bug<S>{
54    |            ^ required by this bound in `Bug`
55 help: consider relaxing the implicit `Sized` restriction
56    |
57 LL | struct Bug<S: ?Sized>{
58    |             ++++++++
59
60 error[E0392]: parameter `S` is never used
61   --> $DIR/constrain-suggest-ice.rs:1:12
62    |
63 LL | struct Bug<S>{
64    |            ^ unused parameter
65    |
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
68
69 error: aborting due to 7 previous errors
70
71 Some errors have detailed explanations: E0277, E0392, E0425.
72 For more information about an error, try `rustc --explain E0277`.