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:
parent
09d83e292d
commit
3ac93abfb2
@ -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>();
|
||||
/// ```
|
||||
|
Loading…
x
Reference in New Issue
Block a user