León Orell Valerian Liehr cdc3d701cb
Don't reject *multiple* relaxed bounds, reject *duplicate* ones.
Having multiple relaxed bounds like `?Sized + ?Iterator` is actually *fine*.
We actually want to reject *duplicate* relaxed bounds like `?Sized + ?Sized`
because these most certainly represent a user error.

Note that this doesn't mean that we accept more code because a bound like
`?Iterator` is still invalid as it's not relaxing a *default* trait and
the only way to define / use more default bounds is under the experimental
and internal feature `more_maybe_bounds` plus `lang_items` plus unstable
flag `-Zexperimental-default-bounds` (historical context: for the longest
time, bounds like `?Iterator` were actually allowed and lead to a hard
warning).

Ultimately, this simply *reframes* the diagnostic. The scope of
`more_maybe_bounds` / `-Zexperimental-default-bounds` remains unchanged
as well.
2025-07-18 12:24:56 +02:00
..
2025-07-17 08:37:19 +10:00
2025-07-15 09:21:27 +02:00
2025-07-15 09:21:27 +02:00
2025-07-15 23:28:15 +02:00
2025-07-13 13:50:01 +00:00
2025-07-15 09:21:27 +02:00
2025-07-17 18:06:26 +08:00
2025-07-13 13:50:01 +00:00
2025-07-13 13:50:01 +00:00
2025-07-15 13:48:30 +00:00
2025-07-14 12:01:41 +03:00