Skip to content

Commit 55dccb9

Browse files
frewsxcvdurka
authored andcommitted
Fix a couple broken links to the reference from error messages.
1 parent cd72f2e commit 55dccb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_typeck/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ trait_obj.method_two();
242242
You can read more about trait objects in the Trait Object section of the
243243
Reference:
244244
245-
https://doc.rust-lang.org/reference.html#trait-objects
245+
https://doc.rust-lang.org/reference/types.html#trait-objects
246246
"##,
247247

248248
E0034: r##"
@@ -875,7 +875,7 @@ optional namespacing), a dereference, an indexing expression or a field
875875
reference.
876876
877877
More details can be found here:
878-
https://doc.rust-lang.org/reference.html#lvalues-rvalues-and-temporaries
878+
https://doc.rust-lang.org/reference/expressions.html#lvalues-rvalues-and-temporaries
879879
880880
Now, we can go further. Here are some erroneous code examples:
881881

0 commit comments

Comments
 (0)