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`
33 error[E0308]: mismatched types
34 --> $DIR/type-ascription-precedence.rs:45:5
37 | ^^^^^^^ expected struct `Z`, found struct `S`
39 error[E0308]: mismatched types
40 --> $DIR/type-ascription-precedence.rs:49:5
43 | ^^^^^^^ expected struct `Z`, found struct `S`
45 error[E0308]: mismatched types
46 --> $DIR/type-ascription-precedence.rs:53:5
49 | ^^^^^^^^ expected struct `S`, found struct `std::ops::Range`
51 = note: expected struct `S`
52 found struct `std::ops::Range<S>`
54 error: aborting due to 8 previous errors
56 Some errors have detailed explanations: E0308, E0600, E0614.
57 For more information about an error, try `rustc --explain E0308`.