| 1 |
error[E0308]: mismatched types |
| 2 |
--> tests/derive_ref/fails/assoc_function_self.rs:4:1 |
| 3 |
| |
| 4 |
4 | #[blanket(derive(Ref))] |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `&MD`, found type parameter `MD` |
| 6 |
5 | pub trait MyDefault { |
| 7 |
| --------- found this type parameter |
| 8 |
6 | fn default() -> Self; |
| 9 |
| ---- expected `&MD` because of return type |
| 10 |
| |
| 11 |
= note: expected reference `&_` |
| 12 |
found type parameter `_` |
| 13 |
= note: this error originates in the attribute macro `blanket` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 14 |
|
| 15 |
error[E0277]: the size for values of type `MD` cannot be known at compilation time |
| 16 |
--> tests/derive_ref/fails/assoc_function_self.rs:4:1 |
| 17 |
| |
| 18 |
4 | #[blanket(derive(Ref))] |
| 19 |
| ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 20 |
5 | pub trait MyDefault { |
| 21 |
| --------- this type parameter needs to be `Sized` |
| 22 |
| |
| 23 |
= note: the return type of a function must have a statically known size |
| 24 |
= note: this error originates in the attribute macro `blanket` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 25 |
help: consider removing the `?Sized` bound to make the type parameter `Sized` |
| 26 |
| |
| 27 |
4 - #[blanket(derive(Ref))] |
| 28 |
| |