1 error[E0308]: mismatched types
2 --> $DIR/type-ascription-precedence.rs:31:7
5 | ^ expected &S, found struct `S`
7 = note: expected reference `&S`
10 error[E0308]: mismatched types
11 --> $DIR/type-ascription-precedence.rs:35:7
14 | ^ expected struct `Z`, found struct `S`
16 = note: expected struct `Z`
19 error[E0614]: type `Z` cannot be dereferenced
20 --> $DIR/type-ascription-precedence.rs:35:5
25 error[E0308]: mismatched types
26 --> $DIR/type-ascription-precedence.rs:40:7
29 | ^ expected struct `Z`, found struct `S`
31 = note: expected struct `Z`
34 error[E0600]: cannot apply unary operator `-` to type `Z`
35 --> $DIR/type-ascription-precedence.rs:40:5
38 | ^^^^^^^ cannot apply unary operator `-`
40 = note: an implementation of `std::ops::Neg` might be missing for `Z`
42 error[E0308]: mismatched types
43 --> $DIR/type-ascription-precedence.rs:45:5
46 | ^^^^^^^ expected struct `Z`, found struct `S`
48 = note: expected struct `Z`
51 error[E0308]: mismatched types
52 --> $DIR/type-ascription-precedence.rs:49:5
55 | ^^^^^^^ expected struct `Z`, found struct `S`
57 = note: expected struct `Z`
60 error[E0308]: mismatched types
61 --> $DIR/type-ascription-precedence.rs:53:5
64 | ^^^^^^^^ expected struct `S`, found struct `std::ops::Range`
66 = note: expected struct `S`
67 found struct `std::ops::Range<S>`
69 error: aborting due to 8 previous errors
71 Some errors have detailed explanations: E0308, E0600, E0614.
72 For more information about an error, try `rustc --explain E0308`.