Skip to content

Commit ed1bc68

Browse files
author
Nick Hamann
committed
Add a link to the E0184 long diagnostic message.
1 parent 021b3f5 commit ed1bc68

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ fn(isize, *const *const u8) -> isize
155155
E0184: r##"
156156
Explicitly implementing both Drop and Copy for a type is currently disallowed.
157157
This feature can make some sense in theory, but the current implementation is
158-
incorrect and can lead to memory unsafety (see issue #20126), so it has been
159-
disabled for now.
158+
incorrect and can lead to memory unsafety (see [issue #20126][iss20126]), so
159+
it has been disabled for now.
160+
161+
[iss20126]: https://github.com/rust-lang/rust/issues/20126
160162
"##,
161163

162164
E0204: r##"

0 commit comments

Comments
 (0)