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/test/ui/consts/const-blocks/fn-call-in-non-const.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0277]: the trait bound `Bar: Copy` is not satisfied
4
4
LL | let _: [Option<Bar>; 2] = [no_copy(); 2];
5
5
| ^^^^^^^^^ the trait `Copy` is not implemented for `Bar`
6
6
|
7
-
= note: required because of the requirements on the impl of `Copy` for `Option<Bar>`
7
+
= note: required for `Option<Bar>` to implement `Copy`
8
8
= note: the `Copy` trait is required because this value will be copied for each element of the array
9
9
= help: consider creating a new `const` item and initializing it with the result of the function call to be used in the repeat position, like `const VAL: Type = const_fn();` and `let x = [VAL; 42];`
10
10
= help: create an inline `const` block, see RFC #2920 <https://github.com/rust-lang/rfcs/pull/2920> for more information
0 commit comments