|
1 |
| -error: found single colon in a struct field type path |
| 1 | +error: path separator must be a double colon |
2 | 2 | --> $DIR/struct-field-type-including-single-colon.rs:9:11
|
3 | 3 | |
|
4 | 4 | LL | a: foo:A,
|
5 | 5 | | ^
|
6 | 6 | |
|
7 |
| -help: write a path separator here |
8 |
| - | |
9 |
| -LL - a: foo:A, |
10 |
| -LL + a: foo::A, |
| 7 | + = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728> |
| 8 | +help: use a double colon instead |
11 | 9 | |
|
| 10 | +LL | a: foo::A, |
| 11 | + | + |
12 | 12 |
|
13 |
| -error: expected `,`, or `}`, found `:` |
14 |
| - --> $DIR/struct-field-type-including-single-colon.rs:9:11 |
15 |
| - | |
16 |
| -LL | struct Foo { |
17 |
| - | --- while parsing this struct |
18 |
| -LL | a: foo:A, |
19 |
| - | ^ |
20 |
| - |
21 |
| -error: found single colon in a struct field type path |
| 13 | +error: path separator must be a double colon |
22 | 14 | --> $DIR/struct-field-type-including-single-colon.rs:15:16
|
23 | 15 | |
|
24 | 16 | LL | b: foo::bar:B,
|
25 | 17 | | ^
|
26 | 18 | |
|
27 |
| -help: write a path separator here |
| 19 | + = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728> |
| 20 | +help: use a double colon instead |
| 21 | + | |
| 22 | +LL | b: foo::bar::B, |
| 23 | + | + |
| 24 | + |
| 25 | +error[E0603]: struct `A` is private |
| 26 | + --> $DIR/struct-field-type-including-single-colon.rs:9:12 |
| 27 | + | |
| 28 | +LL | a: foo:A, |
| 29 | + | ^ private struct |
28 | 30 | |
|
29 |
| -LL - b: foo::bar:B, |
30 |
| -LL + b: foo::bar::B, |
| 31 | +note: the struct `A` is defined here |
| 32 | + --> $DIR/struct-field-type-including-single-colon.rs:2:5 |
31 | 33 | |
|
| 34 | +LL | struct A; |
| 35 | + | ^^^^^^^^^ |
32 | 36 |
|
33 |
| -error: expected `,`, or `}`, found `:` |
34 |
| - --> $DIR/struct-field-type-including-single-colon.rs:15:16 |
| 37 | +error[E0603]: module `bar` is private |
| 38 | + --> $DIR/struct-field-type-including-single-colon.rs:15:13 |
35 | 39 | |
|
36 |
| -LL | struct Bar { |
37 |
| - | --- while parsing this struct |
38 | 40 | LL | b: foo::bar:B,
|
39 |
| - | ^ |
| 41 | + | ^^^ - struct `B` is not publicly re-exported |
| 42 | + | | |
| 43 | + | private module |
| 44 | + | |
| 45 | +note: the module `bar` is defined here |
| 46 | + --> $DIR/struct-field-type-including-single-colon.rs:3:5 |
| 47 | + | |
| 48 | +LL | mod bar { |
| 49 | + | ^^^^^^^ |
40 | 50 |
|
41 | 51 | error: aborting due to 4 previous errors
|
42 | 52 |
|
| 53 | +For more information about this error, try `rustc --explain E0603`. |
0 commit comments