1 error: anonymous enums are not supported
2 --> $DIR/anon-enums.rs:1:16
4 LL | fn foo(x: bool | i32) -> i32 | f64 {
7 = help: create a named `enum` and use it here instead:
13 error: anonymous enums are not supported
14 --> $DIR/anon-enums.rs:1:30
16 LL | fn foo(x: bool | i32) -> i32 | f64 {
19 = help: create a named `enum` and use it here instead:
25 error: expected one of `@` or `|`, found `:`
26 --> $DIR/anon-enums.rs:5:10
29 | ^ --- specifying the type of a pattern isn't supported
31 | expected one of `@` or `|`
33 help: maybe write a path separator here
38 error: expected one of `...`, `..=`, `..`, or `|`, found `:`
39 --> $DIR/anon-enums.rs:13:11
42 | ^ --- specifying the type of a pattern isn't supported
44 | expected one of `...`, `..=`, `..`, or `|`
46 error: expected `|`, found `:`
47 --> $DIR/anon-enums.rs:14:10
50 | ^ --- specifying the type of a pattern isn't supported
54 error: expected one of `@` or `|`, found `:`
55 --> $DIR/anon-enums.rs:15:10
58 | ^ --- specifying the type of a pattern isn't supported
60 | expected one of `@` or `|`
62 help: maybe write a path separator here
67 error: aborting due to 6 previous errors