File: wrong_type_id.stderr

package info (click to toggle)
rust-cxx 1.0.141-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (13 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (4)
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`