1 error[E0308]: mismatched types
2 --> $DIR/type-ascription-precedence.rs:31:7
5 | ^ expected `&S`, found struct `S`
7 error[E0308]: mismatched types
8 --> $DIR/type-ascription-precedence.rs:35:7
11 | ^ expected struct `Z`, found struct `S`
13 error[E0614]: type `Z` cannot be dereferenced
14 --> $DIR/type-ascription-precedence.rs:35:5
19 error[E0308]: mismatched types
20 --> $DIR/type-ascription-precedence.rs:40:7
23 | ^ expected struct `Z`, found struct `S`
25 error[E0600]: cannot apply unary operator `-` to type `Z`
26 --> $DIR/type-ascription-precedence.rs:40:5
29 | ^^^^^^^ cannot apply unary operator `-`
31 note: an implementation of `std::ops::Neg` might be missing for `Z`
32 --> $DIR/type-ascription-precedence.rs:9:1
35 | ^^^^^^^^ must implement `std::ops::Neg`
36 note: the following trait must be implemented
37 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
42 error[E0308]: mismatched types
43 --> $DIR/type-ascription-precedence.rs:45:5
46 | ^^^^^^^ expected struct `Z`, found struct `S`
48 error[E0308]: mismatched types
49 --> $DIR/type-ascription-precedence.rs:49:5
52 | ^^^^^^^ expected struct `Z`, found struct `S`
54 error[E0308]: mismatched types
55 --> $DIR/type-ascription-precedence.rs:53:5
58 | ^^^^^^^^ expected struct `S`, found struct `std::ops::Range`
60 = note: expected struct `S`
61 found struct `std::ops::Range<S>`
63 error: aborting due to 8 previous errors
65 Some errors have detailed explanations: E0308, E0600, E0614.
66 For more information about an error, try `rustc --explain E0308`.