Add a regression test for rustdoc ICEing on negative Deref/DerefMut impls

This commit is contained in:
Jacob Adam
2026-03-26 11:53:17 +00:00
parent 7e46c5f6fb
commit 3888a633b7
@@ -0,0 +1,11 @@
//@ check-pass
// Regression test for https://github.com/rust-lang/rust/issues/128801
// Negative `Deref`/`DerefMut` impls should not cause an ICE.
#![feature(negative_impls)]
pub struct Source;
impl !std::ops::Deref for Source {}
impl !std::ops::DerefMut for Source {}