File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ #[ cxx:: bridge]
2
+ mod ffi {
3
+ extern "C++" {
4
+ type Opaque ;
5
+ }
6
+ }
7
+
8
+ impl Unpin for ffi:: Opaque { }
9
+
10
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error[E0282]: type annotations needed
2
+ --> tests/ui/unpin_impl.rs:1:1
3
+ |
4
+ 1 | #[cxx::bridge]
5
+ | ^^^^^^^^^^^^^^ cannot infer type of the type parameter `Self` declared on the trait `__AmbiguousIfImpl`
6
+ |
7
+ = note: this error originates in the attribute macro `cxx::bridge` (in Nightly builds, run with -Z macro-backtrace for more info)
8
+
9
+ error[E0283]: type annotations needed
10
+ --> tests/ui/unpin_impl.rs:1:1
11
+ |
12
+ 1 | #[cxx::bridge]
13
+ | ^^^^^^^^^^^^^^ cannot infer type of the type parameter `Self` declared on the trait `__AmbiguousIfImpl`
14
+ |
15
+ note: multiple `impl`s satisfying `ffi::Opaque: __AmbiguousIfImpl<_>` found
16
+ --> tests/ui/unpin_impl.rs:1:1
17
+ |
18
+ 1 | #[cxx::bridge]
19
+ | ^^^^^^^^^^^^^^
20
+ = note: this error originates in the attribute macro `cxx::bridge` (in Nightly builds, run with -Z macro-backtrace for more info)
You can’t perform that action at this time.
0 commit comments