summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/no-run-still-checks-lints.rs
blob: 9f7d1c8845dc7cc06c5856d6cc971c63b547550b (plain)
1
2
3
4
5
6
7
8
9
// compile-flags:--test
// should-fail

#![doc(test(attr(deny(warnings))))]

/// ```no_run
/// let a = 3;
/// ```
pub fn foo() {}