aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/wrong_type_id.stderr
blob: 8cb78980953997728651797656fc33201202238b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0271]: type mismatch resolving `<StringPiece as ExternType>::Id == (f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
  --> tests/ui/wrong_type_id.rs:11:14
   |
11 |         type ByteRange = crate::here::StringPiece;
   |              ^^^^^^^^^ expected a tuple with 15 elements, found one with 17 elements
   |
   = note: expected tuple `(f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
              found tuple `(f, o, l, l, y, (), S, t, r, i, n, g, P, i, e, c, e)`
note: required by a bound in `verify_extern_type`
  --> src/extern_type.rs
   |
   | pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {}
   |                                         ^^^^^^^ required by this bound in `verify_extern_type`