error[E0283]: type annotations needed
--> tests/ui_fail/generic_drop.rs:6:8
|
6 | struct ZDropRegression<T>(core::marker::PhantomData<T>);
| ^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: multiple `impl`s satisfying `ZDropRegression<T>: <ZDropRegression<T> as _::AssertNoDrop>::assert_no_drop::CustomDropIsNotSupported<_>` found
--> tests/ui_fail/generic_drop.rs:4:20
|
4 | #[derive(RustSpec, ReprC)]
| ^^^^^
= note: this error originates in the derive macro `ReprC` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0283]: type annotations needed
--> tests/ui_fail/generic_drop.rs:14:8
|
14 | struct ZCopyDropRegression<T: Copy>(T);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
note: multiple `impl`s satisfying `ZCopyDropRegression<T>: <ZCopyDropRegression<T> as _::AssertNoDrop>::assert_no_drop::CustomDropIsNotSupported<_>` found
--> tests/ui_fail/generic_drop.rs:12:20
|
12 | #[derive(RustSpec, ReprC)]
| ^^^^^
= note: this error originates in the derive macro `ReprC` (in Nightly builds, run with -Z macro-backtrace for more info)