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 Pietro Albini
parent 72bc4ae3bb
commit 47ed234a05
No known key found for this signature in database
GPG key ID: CD76B35F7734769E

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