Skip to content

Commit 1e34590

Browse files
Add regression test for #151028
1 parent ba184b0 commit 1e34590

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This test ensures that the intra-doc link in `deprecated` note is resolved at the correct
2+
// location (ie in the current crate and not in the reexported item's location/crate) and
3+
// therefore doesn't crash.
4+
//
5+
// This is a regression test for <https://github.com/rust-lang/rust/issues/151028>.
6+
7+
#![crate_name = "foo"]
8+
9+
#[deprecated(note = "use [`std::mem::forget`]")]
10+
#[doc(inline)]
11+
pub use std::mem::drop;

0 commit comments

Comments
 (0)