Indicate the correct error code in the compile_fail block.

Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
This commit is contained in:
Thom Chiovoloni 2022-03-29 11:45:49 -07:00 committed by GitHub
parent 09d83e292d
commit 3ac93abfb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>();
/// ```