forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype-ascription-precedence.stderr
More file actions
80 lines (70 loc) · 2.32 KB
/
type-ascription-precedence.stderr
File metadata and controls
80 lines (70 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `:`
--> $DIR/type-ascription-precedence.rs:27:7
|
LL | &S: &S;
| ^ expected one of 8 possible tokens
error: expected identifier, found `:`
--> $DIR/type-ascription-precedence.rs:33:8
|
LL | *(S: Z);
| ^ expected identifier
|
help: if this is a parameter, remove the name for the parameter
|
LL - *(S: Z);
LL + *(Z);
|
error: expected identifier, found `:`
--> $DIR/type-ascription-precedence.rs:37:8
|
LL | -(S: Z);
| ^ expected identifier
|
help: if this is a parameter, remove the name for the parameter
|
LL - -(S: Z);
LL + -(Z);
|
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:`
--> $DIR/type-ascription-precedence.rs:41:12
|
LL | (S + Z): Z;
| ^ expected one of `.`, `;`, `?`, `}`, or an operator
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:`
--> $DIR/type-ascription-precedence.rs:45:12
|
LL | (S * Z): Z;
| ^ expected one of `.`, `;`, `?`, `}`, or an operator
error: expected identifier, found `:`
--> $DIR/type-ascription-precedence.rs:49:11
|
LL | S .. S: S;
| ^ expected identifier
|
= note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:`
--> $DIR/type-ascription-precedence.rs:53:13
|
LL | (S .. S): S;
| ^ expected one of `.`, `;`, `?`, `}`, or an operator
error[E0614]: type `Z` cannot be dereferenced
--> $DIR/type-ascription-precedence.rs:33:5
|
LL | *(S: Z);
| ^^^^^^^
error[E0600]: cannot apply unary operator `-` to type `Z`
--> $DIR/type-ascription-precedence.rs:37:5
|
LL | -(S: Z);
| ^^^^^^^ cannot apply unary operator `-`
|
note: an implementation of `std::ops::Neg` might be missing for `Z`
--> $DIR/type-ascription-precedence.rs:7:1
|
LL | struct Z;
| ^^^^^^^^ must implement `std::ops::Neg`
note: the trait `std::ops::Neg` must be implemented
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
error: aborting due to 9 previous errors
Some errors have detailed explanations: E0600, E0614.
For more information about an error, try `rustc --explain E0600`.