File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1042,16 +1042,16 @@ pub(crate) struct UnusedParens {
1042
1042
/// Whether parentheses may be omitted from a type without resulting in ambiguity.
1043
1043
///
1044
1044
/// ```
1045
- /// type Example = Box<dyn Fn() -> &'static (dyn Trait ) + Send>
1045
+ /// type Example = Box<dyn Fn() -> &'static (dyn Send ) + Sync>;
1046
1046
/// ```
1047
1047
///
1048
- /// Here, `&'static (dyn Trait ) + Send ` is a `TypeNoBounds`. As such, it may not directly
1049
- /// contain `ImplTraitType` or `TraitObjectType` which is why `(dyn Trait )` is parenthesized.
1048
+ /// Here, `&'static (dyn Send ) + Sync ` is a `TypeNoBounds`. As such, it may not directly
1049
+ /// contain `ImplTraitType` or `TraitObjectType` which is why `(dyn Send )` is parenthesized.
1050
1050
/// However, an exception is made for `ImplTraitTypeOneBound` and `TraitObjectTypeOneBound`.
1051
1051
/// The following is accepted because there is no `+`.
1052
1052
///
1053
1053
/// ```
1054
- /// type Example = Box<dyn Fn() -> &'static dyn Trait>
1054
+ /// type Example = Box<dyn Fn() -> &'static dyn Send>;
1055
1055
/// ```
1056
1056
enum NoBoundsException {
1057
1057
/// The type must be parenthesized.
You can’t perform that action at this time.
0 commit comments