]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-ascription-precedence.stderr
ebb9c4199dc70812fd6eded6f426422152b01f06
[rust.git] / src / test / ui / type / type-ascription-precedence.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-ascription-precedence.rs:31:7
3    |
4 LL |     &(S: &S);
5    |       ^ expected &S, found struct `S`
6    |
7    = note: expected reference `&S`
8                  found struct `S`
9
10 error[E0308]: mismatched types
11   --> $DIR/type-ascription-precedence.rs:35:7
12    |
13 LL |     *(S: Z);
14    |       ^ expected struct `Z`, found struct `S`
15    |
16    = note: expected struct `Z`
17               found struct `S`
18
19 error[E0614]: type `Z` cannot be dereferenced
20   --> $DIR/type-ascription-precedence.rs:35:5
21    |
22 LL |     *(S: Z);
23    |     ^^^^^^^
24
25 error[E0308]: mismatched types
26   --> $DIR/type-ascription-precedence.rs:40:7
27    |
28 LL |     -(S: Z);
29    |       ^ expected struct `Z`, found struct `S`
30    |
31    = note: expected struct `Z`
32               found struct `S`
33
34 error[E0600]: cannot apply unary operator `-` to type `Z`
35   --> $DIR/type-ascription-precedence.rs:40:5
36    |
37 LL |     -(S: Z);
38    |     ^^^^^^^ cannot apply unary operator `-`
39    |
40    = note: an implementation of `std::ops::Neg` might be missing for `Z`
41
42 error[E0308]: mismatched types
43   --> $DIR/type-ascription-precedence.rs:45:5
44    |
45 LL |     (S + Z): Z;
46    |     ^^^^^^^ expected struct `Z`, found struct `S`
47    |
48    = note: expected struct `Z`
49               found struct `S`
50
51 error[E0308]: mismatched types
52   --> $DIR/type-ascription-precedence.rs:49:5
53    |
54 LL |     (S * Z): Z;
55    |     ^^^^^^^ expected struct `Z`, found struct `S`
56    |
57    = note: expected struct `Z`
58               found struct `S`
59
60 error[E0308]: mismatched types
61   --> $DIR/type-ascription-precedence.rs:53:5
62    |
63 LL |     (S .. S): S;
64    |     ^^^^^^^^ expected struct `S`, found struct `std::ops::Range`
65    |
66    = note: expected struct `S`
67               found struct `std::ops::Range<S>`
68
69 error: aborting due to 8 previous errors
70
71 Some errors have detailed explanations: E0308, E0600, E0614.
72 For more information about an error, try `rustc --explain E0308`.