mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add a regression test for rustdoc ICEing on negative Deref/DerefMut impls
This commit is contained in:
@@ -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 {}
|
||||
Reference in New Issue
Block a user