rust/tests/ui/higher-ranked/structually-relate-aliases.stderr

19 lines
1.7 KiB
Plaintext
Raw Normal View History

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-03-01 05:33:42 -06: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), .. }
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), .. }
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), .. }
error[E0119]: conflicting implementations of trait `Overlap<for<'a> fn(&'a (), _)>` for type `for<'a> fn(&'a (), _)`
--> $DIR/structually-relate-aliases.rs:13:1
2024-03-23 10:33:43 -05:00
|
2024-03-01 05:33:42 -06:00
LL | impl<T> Overlap<T> for T {}
| ------------------------ first implementation here
LL |
2024-03-23 10:33:43 -05:00
LL | impl<T> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T {}
2024-03-01 05:33:42 -06:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a> fn(&'a (), _)`
2024-03-23 10:33:43 -05:00
|
2024-03-01 05:33:42 -06:00
= note: this behavior recently changed as a result of a bug fix; see rust-lang/rust#56105 for details
2024-03-23 10:33:43 -05:00
2024-03-01 05:33:42 -06:00
error: aborting due to 1 previous error
2024-03-23 10:33:43 -05:00
2024-03-01 05:33:42 -06:00
For more information about this error, try `rustc --explain E0119`.