about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-103748-ICE-wrong-braces.stderr
blob: c92535c3906bc7efcaef1177b8108e8028c63803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: invalid `?` in type
  --> $DIR/issue-103748-ICE-wrong-braces.rs:3:36
   |
LL | struct Apple((Apple, Option(Banana ? Citron)));
   |                                    ^ `?` is only allowed on expressions, not types
   |
help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
   |
LL - struct Apple((Apple, Option(Banana ? Citron)));
LL + struct Apple((Apple, Option(Option<Banana > Citron)));
   |

error: unexpected token: `Citron`
  --> $DIR/issue-103748-ICE-wrong-braces.rs:3:38
   |
LL | struct Apple((Apple, Option(Banana ? Citron)));
   |                                      ^^^^^^ unexpected token after this

error: aborting due to 2 previous errors