@@ -2,12 +2,18 @@ error[E0271]: type mismatch resolving `<StringPiece as ExternType>::Id == (f, o,
2
2
--> tests/ui/wrong_type_id.rs:11:14
3
3
|
4
4
11 | type ByteRange = crate::here::StringPiece;
5
- | ^^^^^^^^^ expected a tuple with 15 elements, found one with 17 elements
5
+ | ^^^^^^^^^ type mismatch resolving `<StringPiece as ExternType>::Id == (f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
6
6
|
7
+ note: expected this to be `(f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
8
+ --> tests/ui/wrong_type_id.rs:1:1
9
+ |
10
+ 1 | #[cxx::bridge(namespace = "folly")]
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7
12
= note: expected tuple `(f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
8
13
found tuple `(f, o, l, l, y, (), S, t, r, i, n, g, P, i, e, c, e)`
9
14
note: required by a bound in `verify_extern_type`
10
15
--> src/extern_type.rs
11
16
|
12
17
| pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {}
13
18
| ^^^^^^^ required by this bound in `verify_extern_type`
19
+ = note: this error originates in the attribute macro `cxx::bridge` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments