We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acea7df commit 322e0f7Copy full SHA for 322e0f7
compiler/rustc_error_codes/src/error_codes/E0536.md
@@ -1,10 +1,11 @@
1
+#### Note: this error code is no longer emitted by the compiler.
2
+
3
The `not` cfg-predicate was malformed.
4
-Erroneous code example (using `cargo doc`):
5
+Erroneous code example:
6
-```ignore, E0536 (only triggers on cargo doc)
-#![feature(doc_cfg)]
7
-#[doc(cfg(not()))]
+```compile_fail
8
+#[cfg(not())]
9
pub fn main() {
10
11
}
@@ -13,8 +14,7 @@ pub fn main() {
13
14
The `not` predicate expects one cfg-pattern. Example:
15
16
```
17
-#[doc(cfg(not(target_os = "linux")))] // ok!
+#[cfg(not(target_os = "linux"))] // ok!
18
19
20
0 commit comments