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
err.help("consider using `core::array::from_fn` to initialize the array");
2955
2938
err.help("see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information");
= 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
-
= help: create an inline `const` block, see RFC #2920 <https://github.com/rust-lang/rfcs/pull/2920> for more information
10
9
help: consider annotating `Bar` with `#[derive(Copy)]`
11
10
|
12
11
LL + #[derive(Copy)]
13
12
LL | struct Bar;
14
13
|
15
-
help: consider creating a new `const` item and initializing it with the result of the function call to be used in the repeat position
note: required for `Foo<String>` to implement `Copy`
8
11
--> $DIR/trait-error.rs:1:10
9
12
|
10
13
LL | #[derive(Copy, Clone)]
11
14
| ^^^^ unsatisfied trait bound introduced in this `derive` macro
12
15
= note: the `Copy` trait is required because this value will be copied for each element of the array
13
-
= help: create an inline `const` block, see RFC #2920 <https://github.com/rust-lang/rfcs/pull/2920> for more information
14
16
= note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
15
-
help: consider creating a new `const` item and initializing it with the result of the function call to be used in the repeat position
= note: required for `Option<String>` to implement `Copy`
8
11
= note: the `Copy` trait is required because this value will be copied for each element of the array
9
-
= help: create an inline `const` block, see RFC #2920 <https://github.com/rust-lang/rfcs/pull/2920> for more information
10
-
help: consider creating a new `const` item and initializing it with the result of the constructor to be used in the repeat position
= note: the `Copy` trait is required because this value will be copied for each element of the array
23
-
= help: create an inline `const` block, see RFC #2920 <https://github.com/rust-lang/rfcs/pull/2920> for more information
24
-
help: consider creating a new `const` item and initializing it with the result of the function call to be used in the repeat position
= note: required for `Option<String>` to implement `Copy`
37
34
= note: the `Copy` trait is required because this value will be copied for each element of the array
38
-
= help: create an inline `const` block, see RFC #2920 <https://github.com/rust-lang/rfcs/pull/2920> for more information
39
-
help: consider creating a new `const` item and initializing it with the result of the constructor to be used in the repeat position
0 commit comments