about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrik Kårlin <patrik.karlin@gmail.com>2023-03-01 10:45:08 +0100
committerPatrik Kårlin <patrik.karlin@gmail.com>2023-03-30 14:55:03 +0200
commit4d571a9ccf239ae4d5e354786ede05fda2745f73 (patch)
tree7bde58fdfdc8953b4233bd2e47a783366e512379
parentd1b6aa6834744ec653a8de9f2f4ef25612e520e3 (diff)
downloadrust-4d571a9ccf239ae4d5e354786ede05fda2745f73.tar.gz
rust-4d571a9ccf239ae4d5e354786ede05fda2745f73.zip
rustdoc: remove other redundant item
-rw-r--r--tests/rustdoc-ui/invalid-toplevel-const.rs2
-rw-r--r--tests/rustdoc-ui/invalid-toplevel-const.stderr9
2 files changed, 0 insertions, 11 deletions
diff --git a/tests/rustdoc-ui/invalid-toplevel-const.rs b/tests/rustdoc-ui/invalid-toplevel-const.rs
deleted file mode 100644
index 227be0cfc9a..00000000000
--- a/tests/rustdoc-ui/invalid-toplevel-const.rs
+++ /dev/null
@@ -1,2 +0,0 @@
-static CONST: Option<dyn Fn(& _)> = None;
-//~^ ERROR: the placeholder `_` is not allowed within types on item signatures for static items [E0121]
diff --git a/tests/rustdoc-ui/invalid-toplevel-const.stderr b/tests/rustdoc-ui/invalid-toplevel-const.stderr
deleted file mode 100644
index ae19b728bfe..00000000000
--- a/tests/rustdoc-ui/invalid-toplevel-const.stderr
+++ /dev/null
@@ -1,9 +0,0 @@
-error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
-  --> $DIR/invalid-toplevel-const.rs:1:31
-   |
-LL | static CONST: Option<dyn Fn(& _)> = None;
-   |                               ^ not allowed in type signatures
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0121`.