Fix issue number typo in note
This commit is contained in:
parent
6163394e1f
commit
9271f998d1
2 changed files with 2 additions and 2 deletions
|
@ -1685,7 +1685,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
||||||
if suggest_const_in_array_repeat_expressions {
|
if suggest_const_in_array_repeat_expressions {
|
||||||
err.note(
|
err.note(
|
||||||
"this array initializer can be evaluated at compile-time, see issue \
|
"this array initializer can be evaluated at compile-time, see issue \
|
||||||
#48147 <https://github.com/rust-lang/rust/issues/49147> \
|
#49147 <https://github.com/rust-lang/rust/issues/49147> \
|
||||||
for more information",
|
for more information",
|
||||||
);
|
);
|
||||||
if tcx.sess.opts.unstable_features.is_nightly_build() {
|
if tcx.sess.opts.unstable_features.is_nightly_build() {
|
||||||
|
|
|
@ -7,7 +7,7 @@ LL | let arr: [Option<String>; 2] = [None::<String>; 2];
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<std::option::Option<T> as std::marker::Copy>
|
<std::option::Option<T> as std::marker::Copy>
|
||||||
= note: the `Copy` trait is required because the repeated element will be copied
|
= note: the `Copy` trait is required because the repeated element will be copied
|
||||||
= note: this array initializer can be evaluated at compile-time, see issue #48147 <https://github.com/rust-lang/rust/issues/49147> for more information
|
= note: this array initializer can be evaluated at compile-time, see issue #49147 <https://github.com/rust-lang/rust/issues/49147> for more information
|
||||||
= help: add `#![feature(const_in_array_repeat_expressions)]` to the crate attributes to enable
|
= help: add `#![feature(const_in_array_repeat_expressions)]` to the crate attributes to enable
|
||||||
|
|
||||||
error[E0277]: the trait bound `std::option::Option<std::string::String>: std::marker::Copy` is not satisfied
|
error[E0277]: the trait bound `std::option::Option<std::string::String>: std::marker::Copy` is not satisfied
|
||||||
|
|
Loading…
Add table
Reference in a new issue