diff options
| author | Thom Chiovoloni <chiovolonit@gmail.com> | 2022-03-29 11:45:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-29 11:45:49 -0700 |
| commit | 3ac93abfb220ad3fc0614787a5644e63c162f0d6 (patch) | |
| tree | 9e6ca98f08110fc78c3814e09df04816b8bedc2f | |
| parent | 09d83e292dcb6630c1e8c08734062524466db66e (diff) | |
| download | rust-3ac93abfb220ad3fc0614787a5644e63c162f0d6.tar.gz rust-3ac93abfb220ad3fc0614787a5644e63c162f0d6.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.rs | 2 |
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 06614d9f4d1..208d5a80c5a 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>(); /// ``` |
