You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6
6
|
7
-
= help: the trait `Sized` is not implemented for `(dyn Debug + 'static)`, which is required by `&'static (dyn Debug + 'static): cxx::rust_option::OptionTarget`
7
+
= help: the trait `Sized` is not implemented for `(dyn Debug + 'static)`
8
8
= help: the following other types implement trait `cxx::rust_option::OptionTarget`:
9
9
&T
10
10
&mut T
@@ -17,28 +17,13 @@ note: required by a bound in `RustOption`
17
17
| pub struct RustOption<T: OptionTarget> {
18
18
| ^^^^^^^^^^^^ required by this bound in `RustOption`
19
19
20
-
error[E0599]: the function or associated item `new` exists for struct `RustOption<&dyn Debug>`, but its trait bounds were not satisfied
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
40
25
|
41
-
= help: the trait `Sized` is not implemented for `(dyn Debug + 'static)`, which is required by `&'static (dyn Debug + 'static): cxx::rust_option::OptionTarget`
26
+
= help: the trait `Sized` is not implemented for `(dyn Debug + 'static)`
42
27
= help: the following other types implement trait `cxx::rust_option::OptionTarget`:
43
28
&T
44
29
&mut T
@@ -57,7 +42,7 @@ error[E0277]: the size for values of type `dyn Debug` cannot be known at compila
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: mem::size_of::<Option<U>>() == mem::size_of::<Repr>()', $DIR/src/rust_option.rs:51:37
6
-
|
7
-
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: mem::size_of::<Option<U>>() == mem::size_of::<Repr>()', $DIR/src/rust_option.rs:51:37
6
-
|
7
-
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments