rust/tests/ui/lint/lint-missing-doc-test.rs
Olivier Goffart cc34d64c51 Use doc(hidden) instead of allow(missing_docs) in the test harness
So that it doesn't fail with `forbid(missing_docs)`

Fixes #130218
2024-09-11 12:14:35 +02:00

11 lines
198 B
Rust

//! This test checks that denying the missing_docs lint does not trigger
//! on the generated test harness.
//@ check-pass
//@ compile-flags: --test
#![forbid(missing_docs)]
#[test]
fn test() {}