about summary refs log tree commit diff
path: root/tests/rustdoc/const-generics/const-impl.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-31 13:58:03 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-31 13:58:03 +0000
commit4512f211ae77306b0cd0686a7871d56edbf36d30 (patch)
tree2a296a2f9a5c125320bbb41e874dd71c01b3bc0c /tests/rustdoc/const-generics/const-impl.rs
parent22b27120b990aa9ca851819ce95149385da7954d (diff)
downloadrust-4512f211ae77306b0cd0686a7871d56edbf36d30.tar.gz
rust-4512f211ae77306b0cd0686a7871d56edbf36d30.zip
Accept less invalid Rust in rustdoc
Diffstat (limited to 'tests/rustdoc/const-generics/const-impl.rs')
-rw-r--r--tests/rustdoc/const-generics/const-impl.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rustdoc/const-generics/const-impl.rs b/tests/rustdoc/const-generics/const-impl.rs
index b424ea4b33c..f4eefcc1c33 100644
--- a/tests/rustdoc/const-generics/const-impl.rs
+++ b/tests/rustdoc/const-generics/const-impl.rs
@@ -2,7 +2,9 @@
 #![feature(adt_const_params)]
 #![crate_name = "foo"]
 
-#[derive(PartialEq, Eq)]
+use std::marker::ConstParamTy;
+
+#[derive(PartialEq, Eq, ConstParamTy)]
 pub enum Order {
     Sorted,
     Unsorted,