Skip to content

Commit c48fcc6

Browse files
author
Nick Hamann
committed
Add a link to the E0184 long diagnostic message.
1 parent 3cff5a5 commit c48fcc6

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
@@ -124,8 +124,10 @@ enum Empty {}
124124
E0184: r##"
125125
Explicitly implementing both Drop and Copy for a type is currently disallowed.
126126
This feature can make some sense in theory, but the current implementation is
127-
incorrect and can lead to memory unsafety (see issue #20126), so it has been
128-
disabled for now.
127+
incorrect and can lead to memory unsafety (see [issue #20126][iss20126]), so
128+
it has been disabled for now.
129+
130+
[iss20126]: https://github.com/rust-lang/rust/issues/20126
129131
"##,
130132

131133
E0204: r##"

0 commit comments

Comments
 (0)