about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThom Chiovoloni <chiovolonit@gmail.com>2022-03-29 11:45:49 -0700
committerPietro Albini <pietro.albini@ferrous-systems.com>2022-04-04 10:47:29 +0200
commit47ed234a050c9cfbac39a7ca7e19bc45608f891d (patch)
tree6949a6c74f92a160061687b12250d65e6e3915ef
parent72bc4ae3bb8e4534543499ed7a2dc4b586ea717c (diff)
downloadrust-47ed234a050c9cfbac39a7ca7e19bc45608f891d.tar.gz
rust-47ed234a050c9cfbac39a7ca7e19bc45608f891d.zip
Indicate the correct error code in the `compile_fail` block.
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
-rw-r--r--library/std/src/io/error/repr_bitpacked.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/error/repr_bitpacked.rs b/library/std/src/io/error/repr_bitpacked.rs
index 2f7d2e5d111..17d07ff5662 100644
--- a/library/std/src/io/error/repr_bitpacked.rs
+++ b/library/std/src/io/error/repr_bitpacked.rs
@@ -120,7 +120,7 @@ const TAG_SIMPLE: usize = 0b11;
 /// See the module docs for more, this is just a way to hack in a check that we
 /// indeed are not unwind-safe.
 ///
-/// ```compile_fail
+/// ```compile_fail,E0277
 /// fn is_unwind_safe<T: core::panic::UnwindSafe>() {}
 /// is_unwind_safe::<std::io::Error>();
 /// ```