]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.stderr
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / typeck / do-not-suggest-placeholder-to-const-static-without-type.stderr
1 error: associated `static` items are not allowed
2   --> $DIR/do-not-suggest-placeholder-to-const-static-without-type.rs:3:5
3    |
4 LL |     static B;
5    |     ^^^^^^^^^
6
7 error: missing type for `const` item
8   --> $DIR/do-not-suggest-placeholder-to-const-static-without-type.rs:2:12
9    |
10 LL |     const A;
11    |            ^ help: provide a type for the item: `: <type>`
12
13 error: missing type for `static` item
14   --> $DIR/do-not-suggest-placeholder-to-const-static-without-type.rs:3:13
15    |
16 LL |     static B;
17    |             ^ help: provide a type for the item: `: <type>`
18
19 error: aborting due to 3 previous errors
20