2024-06-27 14:55:44 +03:00
|
|
|
WARN rustc_infer::infer::relate::generalize may incompletely handle alias type: AliasTy { args: [?1t, '^0.Named(DefId(0:15 ~ structually_relate_aliases[de75]::{impl#1}::'a), "'a")], def_id: DefId(0:5 ~ structually_relate_aliases[de75]::ToUnit::Unit), .. }
|
2024-10-15 20:38:43 -04:00
|
|
|
error[E0277]: the trait bound `for<'a> T: ToUnit<'a>` is not satisfied
|
|
|
|
|
--> $DIR/structually-relate-aliases.rs:13:36
|
2024-09-11 17:57:04 -04:00
|
|
|
|
|
|
|
|
|
LL | impl<T> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T {}
|
2024-10-15 20:38:43 -04:00
|
|
|
| ^^^^^^^^^^^^ the trait `for<'a> ToUnit<'a>` is not implemented for `T`
|
|
|
|
|
|
|
2024-11-28 20:22:46 +00:00
|
|
|
help: consider restricting type parameter `T` with trait `ToUnit`
|
2024-10-15 20:38:43 -04:00
|
|
|
|
|
|
|
|
|
LL | impl<T: for<'a> ToUnit<'a>> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T {}
|
|
|
|
|
| ++++++++++++++++++++
|
|
|
|
|
|
2024-11-27 21:27:37 +00:00
|
|
|
error: aborting due to 1 previous error
|
2024-03-23 23:33:43 +08:00
|
|
|
|
2024-10-15 20:38:43 -04:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|