1 error: missing type for `const` item
2 --> $DIR/unnamable-types.rs:6:8
5 | ^ help: provide a type for the constant: `: i32`
7 error[E0121]: the placeholder `_` is not allowed within types on item signatures for static variables
8 --> $DIR/unnamable-types.rs:10:11
10 LL | static B: _ = "abc";
13 | not allowed in type signatures
14 | help: replace with the correct type: `&str`
16 error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
17 --> $DIR/unnamable-types.rs:17:10
19 LL | const C: _ = || 42;
20 | ^ not allowed in type signatures
22 note: however, the inferred type `[closure@$DIR/unnamable-types.rs:17:14: 17:16]` cannot be named
23 --> $DIR/unnamable-types.rs:17:14
25 LL | const C: _ = || 42;
28 error: missing type for `const` item
29 --> $DIR/unnamable-types.rs:23:8
31 LL | const D = S { t: { let i = 0; move || -> i32 { i } } };
34 note: however, the inferred type `S<[closure@$DIR/unnamable-types.rs:23:31: 23:45]>` cannot be named
35 --> $DIR/unnamable-types.rs:23:11
37 LL | const D = S { t: { let i = 0; move || -> i32 { i } } };
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 error: missing type for `const` item
41 --> $DIR/unnamable-types.rs:29:8
44 | ^ help: provide a type for the constant: `: fn() -> i32`
46 error: missing type for `const` item
47 --> $DIR/unnamable-types.rs:32:8
49 LL | const F = S { t: foo };
50 | ^ help: provide a type for the constant: `: S<fn() -> i32>`
52 error: missing type for `const` item
53 --> $DIR/unnamable-types.rs:37:8
55 LL | const G = || -> i32 { yield 0; return 1; };
58 note: however, the inferred type `[generator@$DIR/unnamable-types.rs:37:11: 37:20]` cannot be named
59 --> $DIR/unnamable-types.rs:37:11
61 LL | const G = || -> i32 { yield 0; return 1; };
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 error: aborting due to 7 previous errors
66 For more information about this error, try `rustc --explain E0121`.