fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: invalid `?` in type 2 --> $DIR/issue-103748-ICE-wrong-braces.rs:3:36 3 | 4LL | struct Apple((Apple, Option(Banana ? Citron))); 5 | ^ `?` is only allowed on expressions, not types 6 | 7help: if you meant to express that the type might not contain a value, use the `Option` wrapper type 8 | 9LL | struct Apple((Apple, Option(Option<Banana > Citron))); 10 | +++++++ ~ 11 12error: expected one of `)` or `,`, found `Citron` 13 --> $DIR/issue-103748-ICE-wrong-braces.rs:3:38 14 | 15LL | struct Apple((Apple, Option(Banana ? Citron))); 16 | -^^^^^^ expected one of `)` or `,` 17 | | 18 | help: missing `,` 19 20error[E0412]: cannot find type `Citron` in this scope 21 --> $DIR/issue-103748-ICE-wrong-braces.rs:3:38 22 | 23LL | struct Apple((Apple, Option(Banana ? Citron))); 24 | ^^^^^^ not found in this scope 25 26error[E0214]: parenthesized type parameters may only be used with a `Fn` trait 27 --> $DIR/issue-103748-ICE-wrong-braces.rs:3:22 28 | 29LL | struct Apple((Apple, Option(Banana ? Citron))); 30 | ^^^^^^^^^^^^^^^^^^^^^^^ only `Fn` traits may use parentheses 31 | 32help: use angle brackets instead 33 | 34LL | struct Apple((Apple, Option<Banana ? Citron>)); 35 | ~ ~ 36 37error[E0072]: recursive type `Apple` has infinite size 38 --> $DIR/issue-103748-ICE-wrong-braces.rs:3:1 39 | 40LL | struct Apple((Apple, Option(Banana ? Citron))); 41 | ^^^^^^^^^^^^ ----- recursive without indirection 42 | 43help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle 44 | 45LL | struct Apple((Box<Apple>, Option(Banana ? Citron))); 46 | ++++ + 47 48error: aborting due to 5 previous errors 49 50Some errors have detailed explanations: E0072, E0214, E0412. 51For more information about an error, try `rustc --explain E0072`.