|
| 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 | + | ^ |
| 28 | + | |
| 29 | +help: a local variable with a similar name exists |
| 30 | + | |
| 31 | +LL | x |
| 32 | + | ~ |
| 33 | +help: you might be missing a type parameter |
| 34 | + | |
| 35 | +LL | struct Bug<S, F>{ |
| 36 | + | +++ |
| 37 | + |
| 38 | +error: generic `Self` types are currently not permitted in anonymous constants |
| 39 | + --> $DIR/constrain-suggest-ice.rs:3:21 |
| 40 | + | |
| 41 | +LL | let x: [u8; Self::W] = [0; Self::W]; |
| 42 | + | ^^^^ |
| 43 | + |
| 44 | +error: generic `Self` types are currently not permitted in anonymous constants |
| 45 | + --> $DIR/constrain-suggest-ice.rs:3:36 |
| 46 | + | |
| 47 | +LL | let x: [u8; Self::W] = [0; Self::W]; |
| 48 | + | ^^^^ |
| 49 | + |
| 50 | +error[E0277]: the size for values of type `S` cannot be known at compilation time |
| 51 | + --> $DIR/constrain-suggest-ice.rs:3:36 |
| 52 | + | |
| 53 | +LL | struct Bug<S>{ |
| 54 | + | - this type parameter needs to be `std::marker::Sized` |
| 55 | +LL | A: [(); { |
| 56 | +LL | let x: [u8; Self::W] = [0; Self::W]; |
| 57 | + | ^^^^^^^ doesn't have a size known at compile-time |
| 58 | + | |
| 59 | +note: required by a bound in `Bug` |
| 60 | + --> $DIR/constrain-suggest-ice.rs:1:12 |
| 61 | + | |
| 62 | +LL | struct Bug<S>{ |
| 63 | + | ^ required by this bound in `Bug` |
| 64 | +help: consider relaxing the implicit `Sized` restriction |
| 65 | + | |
| 66 | +LL | struct Bug<S: ?Sized>{ |
| 67 | + | ++++++++ |
| 68 | + |
| 69 | +error[E0392]: parameter `S` is never used |
| 70 | + --> $DIR/constrain-suggest-ice.rs:1:12 |
| 71 | + | |
| 72 | +LL | struct Bug<S>{ |
| 73 | + | ^ unused parameter |
| 74 | + | |
| 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 |
| 77 | + |
| 78 | +error: aborting due to 7 previous errors |
| 79 | + |
| 80 | +Some errors have detailed explanations: E0277, E0392, E0425. |
| 81 | +For more information about an error, try `rustc --explain E0277`. |
0 commit comments