Skip to content

Commit 743caa2

Browse files
committed
Remove duplicated UniquePtr<C> impl in ui test
1 parent 441956e commit 743caa2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/ui/unique_ptr_to_opaque.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ mod outside {
1111

1212
#[cxx::bridge]
1313
mod ffi {
14-
impl UniquePtr<C> {}
15-
1614
extern "C" {
1715
type C = crate::outside::C;
1816
}

tests/ui/unique_ptr_to_opaque.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0271]: type mismatch resolving `<outside::C as ExternType>::Kind == Trivial`
2-
--> $DIR/unique_ptr_to_opaque.rs:24:5
2+
--> $DIR/unique_ptr_to_opaque.rs:22:5
33
|
4-
24 | cxx::UniquePtr::new(outside::C { a: 4 });
4+
22 | cxx::UniquePtr::new(outside::C { a: 4 });
55
| ^^^^^^^^^^^^^^^^^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
66
|
77
= note: required by `UniquePtr::<T>::new`

0 commit comments

Comments
 (0)