Skip to content

Commit 9271f99

Browse files
Fix issue number typo in note
1 parent 6163394 commit 9271f99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_trait_selection/traits/error_reporting/suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
16851685
if suggest_const_in_array_repeat_expressions {
16861686
err.note(
16871687
"this array initializer can be evaluated at compile-time, see issue \
1688-
#48147 <https://github.com/rust-lang/rust/issues/49147> \
1688+
#49147 <https://github.com/rust-lang/rust/issues/49147> \
16891689
for more information",
16901690
);
16911691
if tcx.sess.opts.unstable_features.is_nightly_build() {

src/test/ui/feature-gates/feature-gate-const_in_array_repeat_expressions.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | let arr: [Option<String>; 2] = [None::<String>; 2];
77
= help: the following implementations were found:
88
<std::option::Option<T> as std::marker::Copy>
99
= note: the `Copy` trait is required because the repeated element will be copied
10-
= note: this array initializer can be evaluated at compile-time, see issue #48147 <https://github.com/rust-lang/rust/issues/49147> for more information
10+
= note: this array initializer can be evaluated at compile-time, see issue #49147 <https://github.com/rust-lang/rust/issues/49147> for more information
1111
= help: add `#![feature(const_in_array_repeat_expressions)]` to the crate attributes to enable
1212

1313
error[E0277]: the trait bound `std::option::Option<std::string::String>: std::marker::Copy` is not satisfied

0 commit comments

Comments
 (0)