You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/expressions.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -280,11 +280,6 @@ explicitly invokes an :t:`associated trait function` or uses
280
280
:t:`[arithmetic operator]s` of non-builtin :t:`[type]s` that invoke
281
281
:std:`core::ops` :t:`[trait]s`.
282
282
283
-
:dp:`fls_9mrrosm8jnn7`
284
-
An :t:`arithmetic expression` that operates with :t:`[floating-point value]s` is
285
-
not considered a :t:`constant expression` when it appears inside the
286
-
:t:`function body` of a :t:`constant function`.
287
-
288
283
:dp:`fls_fmqar6o1bwqk`
289
284
It is a static error if the :t:`size operand` of an
290
285
:t:`array repetition constructor` or an :t:`array type` depends on
@@ -938,6 +933,11 @@ Operator Expressions
938
933
:dp:`fls_ursc5ynymoy`
939
934
An :t:`operator expression` is an :t:`expression` that involves an operator.
940
935
936
+
.. rubric:: Dynamic Semantics
937
+
938
+
:dp:`fls_lSxXWxJn0vMO`
939
+
An :t:`operator expression` that operates with :t:`[floating-point value]s` run as a :t:`constant expression` is allowed to yield different :t:`[value]s` compared to when run as a non-:t:`constant expression`.
0 commit comments